ibmcloud-config
writes default values to the IBM Cloud CLI configuration file
TLDR
SYNOPSIS
ibmcloud config --http-timeout SECONDS | --trace (true|false|path/to/file) | --color (true|false) | --locale (LOCALE|CLEAR) | --check-version (true|false)
DESCRIPTION
ibmcloud config writes persistent defaults to the CLI configuration file. The settings apply to every `ibmcloud` invocation that uses the same configuration directory, which is `~/.bluemix` unless IBMCLOUD_HOME points elsewhere.Only one option can be given per invocation. Each setting has a matching environment variable that overrides the stored value for a single command, which is handy in scripts and CI.
PARAMETERS
--http-timeout SECONDS
Timeout value for HTTP requests, in seconds. The default is 60.--trace true|false|PATH
Trace HTTP requests to the terminal, or append them to the given file.--color true|false
Enable or disable color output. Disabled by default.--locale LOCALE|CLEAR
Set the default output locale, for example `en_US`. `CLEAR` removes the setting.--check-version true|false
Enable or disable the CLI version check.--sso-otp manual|auto
Style of single sign-on one-time passcode retrieval. `manual` (the default) requires user interaction; `auto` launches the default browser and accepts the token.--alpha-commands true|false
Sort uncategorized commands alphabetically in help output.
ENVIRONMENT
IBMCLOUD_HOME
Directory holding the configuration; the CLI reads and writes `$IBMCLOUD_HOME/.bluemix`.IBMCLOUD_COLOR
Overrides `--color` for one invocation.IBMCLOUD_HTTP_TIMEOUT
Overrides `--http-timeout` for one invocation.IBMCLOUD_TRACE
Overrides `--trace`; accepts `true` or a log file path.IBMCLOUD_VERSION_CHECK
Overrides `--check-version` for one invocation.
CAVEATS
Only one option can be specified at a time; the CLI rejects two settings in the same command.Traces contain full HTTP requests, including authorization headers, so a trace file can leak IAM tokens. Do not commit or share it.The settings are per configuration directory, not global. Shells that set a different IBMCLOUD_HOME keep their own values.
HISTORY
ibmcloud config is part of the IBM Cloud CLI, which replaced the earlier `bluemix` (`bx`) CLI when Bluemix was rebranded to IBM Cloud around 2018.
SEE ALSO
ibmcloud(1), ibmcloud-login(1), ibmcloud-target(1), ibmcloud-api(1)
