Learn how to configure the Scale CLI using command line flags, environment variables, or a configuration file.
Flag | Description | Default Value |
---|---|---|
--help | Show help for any command | false |
--config | The path to the Scale CLI configuration file (if it exists) | ~/.config/scale/config.yml |
--log | The path to where the Scale CLI will log things (will be created if it does not exist) | ~/.config/scale/scale.log |
--format | The output format for the Scale CLI (human , json , or csv ) | human |
--debug | Enable debug logging | false |
--no-color | Disable color output | false |
--version | Show the version of the Scale CLI | false |
--cache-directory | The path to the Scale CLI cache directory (will be created if it does not exist) | ~/.config/scale/functions |
SCALE_
and convert them to the corresponding flag. For example, the environment variable SCALE_CACHE_DIRECTORY
will be converted to the --cache-directory
flag.
~/.config/scale/config.yml
. If it exists, it will be used to configure the Scale CLI. The configuration file can be used to set any of the global flags listed above.
The configuration file itself can also be specified using the --config
flag or the SCALE_CONFIG
environment variable.