Skip to content

vip config envvar set

Add or update an environment variable.

Usage

vip config envvar set <VARIABLE_NAME> [options]

Options

OptionDescription
-a, --app Specify the app
-d, --debug Activate debug output
-e, --env Specify the environment
-f, --from-file Read environment variable value from file (useful for multiline input)
-h, --help Output the help for the (sub)command
-s, --skip-confirmation Skip manual confirmation of input (USE WITH CAUTION) (disabled by default)
-v, --version Output the version number

Examples

- Add or update the environment variable "MY_VARIABLE" and assign its value at the prompt.
$ vip @example-app.develop config envvar set MY_VARIABLE

- Add or update the environment variable "MULTILINE_ENV_VAR" and assign the multiline contents of local file envvar-value.txt as its value.
$ vip @example-app.develop config envvar set MULTILINE_ENV_VAR --from-file=envvar-value.txt

Last updated: June 05, 2024