Configuration
Configuration options for the Release CLI
By default, the Release CLI configuration file is stored at $HOME/.release.yaml.
You can override the default configuration in two ways:
Set the
RELEASE_CONFIGenvironment variable to the file path containing your configuration.Provide the path to your configuration file with the
--configflag as part of a command.
Settings
The configuration file contains the following settings fields, which will be used globally unless overridden:
account(optional): The name or ID of the default Release account.app(optional): The name or ID of the default Release app.
If you would like to avoid specifying the --account flag on each release command, update your $HOME/.release.yaml with the following:
account: YOUR_ACCOUNT_NAMEEnvironment variables
You can optionally override any setting using environment variables following the RELEASE_<KEY> naming convention. For example, to override account, set RELEASE_ACCOUNT=MyAccount.
Authentication
To authenticate the Release CLI from a non-interactive environment such as a CI system or for programmatic use:
Install and authenticate the Release CLI interactively from your local machine using
release auth login.Copy the values for
loginandtokenfrom the Release config file at~/.release.yamlSet the environment variables
RELEASE_LOGINandRELEASE_TOKENto the corresponding values from the config file.
Note it is not necessary to invoke release auth login if those environment variables are set.
Last updated
Was this helpful?