Title: vip dev-env envvar
Published: July 7, 2026

---

 1. [VIP-CLI command reference](https://docs.wpvip.com/vip-cli/commands/)
 2. [vip dev-env](https://docs.wpvip.com/vip-cli/commands/dev-env/)
 3. vip dev-env envvar

#  vip dev-env envvar

Manage environment variables for a local environment.

## Usage

    ```wp-block-preformatted
    vip dev-env envvar [options]
    ```

## Options

| Option | Description | 
|  `-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. |

## Examples

    ```wp-block-preformatted
    - 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

| Name | Description | 
|  [`delete`](https://docs.wpvip.com/vip-cli/commands/dev-env/./delete?output_format=md) |  Delete a local environment variable. |  
|  [`get`](https://docs.wpvip.com/vip-cli/commands/dev-env/./get?output_format=md) |  Retrieve the value of a local environment variable. |  
|  [`get-all`](https://docs.wpvip.com/vip-cli/commands/dev-env/./get-all?output_format=md) |  Retrieve the names and values of all local environment variables. |  
|  [`list`](https://docs.wpvip.com/vip-cli/commands/dev-env/./list?output_format=md) |  List the names of all local environment variables. |  
|  [`set`](https://docs.wpvip.com/vip-cli/commands/dev-env/./set?output_format=md) |  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: July 07, 2026