Title: vip dev-env exec
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 exec

#  vip dev-env exec

Run a WP-CLI command against a local environment.

## Usage

    ```wp-block-preformatted
    vip dev-env exec [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. |  
|  `-s`, `--slug` |  [value] A unique name for a local environment. Default is “vip-local”. |  
|  `-f`, `--force` |  [value] Skip validation for a local environment to be in a running state. |  
|  `-q`, `--quiet` |  [value] Suppress informational messages. |

## Examples

    ```wp-block-preformatted
    - Run a WP-CLI command against a local environment named "example-site".
    * A double dash ("--") must separate the arguments of "vip" from those of the "wp" command.$ vip dev-env exec --slug=example-site -- wp post list- Target the WP-CLI command against the network site "example.example-site.vipdev.lndo.site" of a local multisite environment.$ vip dev-env exec --slug=example-site -- wp user list --url=example.example-site.vipdev.lndo.site- Run the WP-CLI command "wp shell" against a local environment to open an interactive PHP console.$ vip dev-env exec --slug=example-site -- wp shell
    ```

Last updated: July 07, 2026