Skip to content

vip dev-env envvar set

Add or update a local environment variable that begins with an uppercase letter and only includes the allowed characters A-Z, 0-9, or _.

Usage

vip dev-env envvar set [options]

Options

OptionDescription
-h, --help Retrieve a description, examples, and available options for a (sub)command. (default: false)
-v, --version Retrieve the version number of VIP-CLI currently installed on the local machine. (default: false)
-d, --debug [value] Generate verbose output during command execution to help identify or fix errors or bugs.
-s, --slug [value] A unique name for a local environment. Default is “vip-local”.
-f, --from-file [value] Read environment variable value from a UTF-8-encoded text file (useful for multiline input). Accepts a relative or absolute path.

Examples

- Add or update the local environment variable "MY_VARIABLE" and assign its value at the prompt.
$ vip dev-env envvar set --slug=example-site MY_VARIABLE

- Add or update the local environment variable "MY_VARIABLE" and assign its value to "MY_VALUE".
$ vip dev-env envvar set --slug=example-site MY_VARIABLE MY_VALUE

- Add or update the local environment variable "MULTILINE_ENV_VAR" and assign the multiline contents of local file envvar-value.txt as its value.
$ vip dev-env envvar set --slug=example-site MULTILINE_ENV_VAR --from-file=envvar-value.txt

Last updated: July 07, 2026