Title: vip config envvar set
Published: July 7, 2026

---

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

#  vip config envvar set

Add or update an environment variable.

## Usage

    ```wp-block-preformatted
    vip config envvar set <VARIABLE_NAME> [options]
    ```

## Options

| Option | Description | 
|  `-a`, `--app` |  [value] Target an application. Accepts a string value for the application name or an integer for the application ID. |  
|  `-e`, `--env` |  [value] Target an environment. Accepts a string value for the environment type. |  
|  `-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. |  
|  `-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. |  
|  `-s`, `--skip-confirmation` |  Skip the confirmation prompt (USE WITH CAUTION). (default: false) |

## Examples

    ```wp-block-preformatted
    - 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: July 07, 2026