Skip to content

vip dev-env exec

Execute a WP-CLI command in local dev environment

Usage

vip dev-env-exec [options]

Options

OptionDescription
-d, --debug Activate debug output
-f, --force Disable validations before task execution
-h, --help Output the help for the (sub)command
-q, --quiet Suppress output
-s, --slug Custom name of the dev environment
-v, --version Output the version number

Examples

- Use dev-environment to run `wp post list`
$ vip dev-env exec -- wp post list

- Use dev-environment "my-site" to run `wp post list --posts_per_page=500`
$ vip dev-env exec --slug my_site -- wp post list --posts_per_page=500

- Use dev-environment "my_site" to run interactive wp shell
$ vip dev-env exec --slug my_site -- wp shell

Last updated: February 08, 2024