Skip to content

vip wp

Execute a WP-CLI command against an environment.

Usage

vip wp [options]

Options

OptionDescription
-a, --app Target an application. Accepts a string value for the application name or an integer for the application ID.
-d, --debug Generate verbose output during command execution to help identify or fix errors or bugs.
-e, --env Target an environment. Accepts a string value for the environment type.
-h, --help Retrieve a description, examples, and available options for a (sub)command.
-v, --version Retrieve the version number of VIP-CLI currently installed on the local machine.
-y, --yes Answer yes to the confirmation prompt (only on production environments).

Examples

- Use a WP-CLI command to retrieve the list of network sites on the develop environment of the "example-app" WordPress multisite application.
$ vip @example-app.develop -- wp site list

- Use a WP-CLI command to retrieve the list of Super Admins on the production environment and automatically answer "yes" to the confirmation prompt.
$ vip @example-app.production --yes -- wp user list

- Use a WP-CLI command to retrieve the list of posts for the network site dev.example.com.
$ vip @example-app.develop -- wp post list --posts_per_page=100 --url=dev.example.com

- Use the VIP-CLI to launch an interactive WP-CLI shell console and run WP-CLI commands on the develop environment.
$ vip @example-app.develop -- wp

- example-app.develop:~$ wp option get home - https://dev.example.com

Last updated: November 18, 2024