vip dev-env exec [options]
Execute an operation on a dev environment
Options
Argument | Description |
---|---|
-d , --debug | Activate debug output |
-f , --force | Disabling validations before task execution |
-q , --quiet | Suppress VIP-CLI errors and messaging and send only the output of the passed command to STDERR and STDOUT . |
-h , --help | Output the help for the (sub)command |
-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
Global Options
Argument | Description |
---|---|
-a , --app=<app> | Specify the app |
-d , --debug | Activate debug output |
-e , --env=<env> | Specify the environment |
-h , --help | Output the help for the (sub)command |
-v , --version | Output the version number |
-y , --yes | Run the command in production without a confirmation prompt |
Last updated: January 23, 2023