Skip to content

vip dev-env envvar

Manage environment variables for a local environment.

Usage

vip dev-env envvar [options] [command]

Options

OptionDescription
-d, --debug Generate verbose output during command execution to help identify or fix errors or bugs.
-h, --help Retrieve a description, examples, and available options for a (sub)command.
-v, --version Retrieve the version number of VIP-CLI currently installed on the local machine.

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

- Retrieve the value of the local environment variable "MY_VARIABLE".
$ vip dev-env envvar get --slug=example-site MY_VARIABLE

- Retrieve a list of all local environment variables in the default table format.
$ vip dev-env envvar get-all --slug=example-site

- List the names of all local environment variables.
$ vip dev-env envvar list --slug=example-site

- Delete the local environment variable "MY_VARIABLE" from the environment.
$ vip dev-env envvar delete --slug=example-site MY_VARIABLE

Subcommands

NameDescription
delete Delete a local environment variable.
get Retrieve the value of a local environment variable.
get-all Retrieve the names and values of all local environment variables.
list List the names of all local environment variables.
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 _.

Last updated: November 12, 2025