Skip to content

vip config envvar set [options]

Add or update an environment variable

Options

ArgumentDescription
-a, --appSpecify the app
-d, --debugActivate debug output
-e, --envSpecify the environment
-f, --from-fileRead environment variable value from file (useful for multiline input)
-h, --helpOutput the help for the (sub)command
-s, --skip-confirmationSkip manual confirmation of input (USE WITH CAUTION) (disabled by default)
-v, --versionOutput the version number

Examples

   # Set the environment variable "MY_VARIABLE" and receive a prompt for its value
    $ vip @mytestsite.develop config envvar set EXAMPLE_ENV_VAR
      For multiline input, use the --from-file option.
      ✔ Enter the value for EXAMPLE_ENV_VAR: · 1234567890
      ✔ Please confirm the input value above (y/N) · true
      Successfully set environment variable "EXAMPLE_ENV_VAR"

Global Options

ArgumentDescription
-a, --app=<app>Specify the app
-d, --debugActivate debug output
-e, --env=<env>Specify the environment
-h, --helpOutput the help for the (sub)command
-v, --versionOutput the version number
-y, --yesRun the command in production without a confirmation prompt

Last updated: December 22, 2022