browse
oci/

Oracle Cloud CLI

Oracle

Command line interface for Oracle Cloud Infrastructure service management and automation.

Cloud ProvidersJSON
01Install
pip install oci-cli
Download binary →

02Agent 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
FlagTypeDescription
--outputenum [json, table]Output format
--compartment-idstringOCID of the compartment to target
--querystringJMESPath query to filter output
--profilestringNamed profile from config file

04Authentication
Methods
config-fileenvironment-variables
Config files
~/.oci/config
Setupoci setup config

05Capabilities
Reference
binaryoci
checkoci --version
authconfig-file, environment-variables
formatsjson, table
json flag--output json
version3.76.0