WP-CLI
WP-CLI is a powerful and extensible way to interact with WordPress from the command line. WP-CLI is supported on VIP via our VIP-CLI tool.
Most of the things you can do with WordPress core have an equivalent command in WP-CLI. For example:
- Onboarding and offboarding users:
wp user create
,wp user delete
- List scheduled WP Cron tasks (asynchronous tasks in WordPress):
wp cron schedule list
- List all categories in your site:
wp term list category
If core does not have a command that meets your needs, you can also write your own custom WP-CLI command.
Resources
- Installation and use: https://wp-cli.org/
- Handbook: https://make.wordpress.org/cli/handbook/
- Commands: https://developer.wordpress.org/cli/commands/
- Configuration: https://make.wordpress.org/cli/handbook/references/config/