The Oracle Cloud Infrastructure CLI supports the use of environment variables to specify default values for some options.
Environment Variables
The following table lists the available environment variables and their corresponding CLI options or ~/.oci/config entries.
Environment Variable
CLI option
OCI config entry
Description
OCI_CLI_PROFILE
--profile
Specified by [DEFAULT]
The profile in the OCI config file to load. This profile will also be
used to locate any default parameter values which have been specified in
the OCI CLI-specific configuration file.
The path to the OCI CLI-specific configuration file, containing
parameter default values and other configuration information such as
command aliases and predefined queries. See Configuring the CLI for more information.
OCI_CLI_CERT_BUNDLE
--cert-bundle
n/a
The full path to a CA certificate bundle to be used for SSL
verification.
OCI_CLI_AUTH
--auth
n/a
The type of auth to use for the API request. By default the API key
in your config file will be used.