Skip to content

vip dev-env exec [options]

Execute an operation on a dev environment

Options

ArgumentDescription
-d, --debugActivate debug output
-f, --forceDisabling validations before task execution
-q, --quietSuppress VIP-CLI errors and messaging and send only the output of the passed command to STDERR and STDOUT.
-h, --helpOutput the help for the (sub)command
-s, --slugCustom name of the dev environment
-v, --versionOutput 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

ArgumentDescription
-a, --app=<app>Specify the app
-d, --debugActivate debug output
-e, --env=<env>Specify the environment
-h, --helpOutput the help for the (sub)command
-v, --versionOutput the version number
-y, --yesRun the command in production without a confirmation prompt

Last updated: January 23, 2023