No such command error in v3.71.0
Steps to reproduce
- Install oci-cli version
3.71.0(latest) with winget:
winget install --id Oracle.OCI-CLI --version 3.71.0
- List CE clusters
oci ce cluster list --compartment-id <COMPARTMENT_ID> --auth security_token
Expected result
JSON object with CE clusters.
Actual result
An error:
Usage: oci.exe [OPTIONS] COMMAND [ARGS]...
Error: No such command 'ce'.
System information
OS: Windows 11 (Version 25H2, build 26200.7171) PowerShell: v7.5.4
Workaround
Downgrading to 3.70.1, which is not affected.
Hi @maksym-dilanian ,
The OCI CLI package currently available via WinGet is not officially maintained by Oracle. Please use the official installation methods for installing oci-cli provided by Oracle.
References - https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm#InstallingCLI__windows https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/climanualinst.htm
pip install oci-cli==3.71.0
I have the same problem with the msi package 3.71.0 from the github repo releases page.
Just downloaded 3.71.0 through GH Releases page and got the same error:
Error: No such command 'ce'.
@vassourita Can you share the exact steps used for installing CLI from github? Did you used pip method?
@pankajmjx I have got the same. Using the link you referenced and then following the guide to download the msi from the github page. Once installed, tried running the "oci ce ..." and it mentions "Error: No such command 'ce'." This was in a Powershell window.
I simply downloaded oci-cli from the page: https://github.com/oracle/oci-cli/releases
But it does not work.
Previous version 3.70.1 is working properly.
Hi everyone, We are working on resolving issues in the latest MSI release. Please downgrade to version 3.70.1 or lower to unblock yourself.
This has been resolved in the later versions of CLI. Closing this