browseDownload binary →
oci/Oracle Cloud CLI
OracleCommand line interface for Oracle Cloud Infrastructure service management and automation.
Cloud ProvidersJSON
01Install
pip install oci-cli02Agent Notes
OCI CLI defaults to JSON output. Uses `oci <service> <resource> <action>` pattern. Use `--query` with JMESPath for filtering. Always specify `--compartment-id` for list operations. Common services: compute, network, os (object storage), db, iam. Use `oci iam compartment list` to discover compartments.
03Global Flags
| Flag | Type | Description |
|---|---|---|
--output | enum [json, table] | Output format |
--compartment-id | string | OCID of the compartment to target |
--query | string | JMESPath query to filter output |
--profile | string | Named profile from config file |
04Authentication
Methods
config-fileenvironment-variables
Config files
~/.oci/configSetup
oci setup config05Capabilities
Reference
binary
ocicheck
oci --versionauth
config-file, environment-variablesformats
json, tablejson flag
--output jsonversion
3.76.0