3. TYPES OF
WP-CLI COMMANDS
wp-core download
wp plugin install plugin-name --activate
wp search-replace ‘search string’ ‘replace with’ —dry-run
wp cache flush
Full list of commands:
https://developer.wordpress.org/cli/commands/
4. DO I HAVE
WP-CLI ACCESS?
On your production site
Check with your host
Local development
Local by Flywheel 👍
Vagrant + VVV 👍
Chassis 👍
MAMP Pro 🤷🤷♂️ (not by default as of v4)
5. INSTALLING
WP-CLI LOCALLY
Installing WP-CLI locally gives you access to run
commands from terminal. When paired with aliases you
can run actions on all your WordPress sites.
7. CREATING A
CONFIG.YML
config.yml is a configuration file for setting options at
the local project or global level.
wp-cli.local.yml file inside the current working directory
(or upwards).
wp-cli.yml file inside the current working directory (or
upwards).
~/.wp-cli/config.yml file (path can be changed by
setting the WP_CLI_CONFIG_PATH environment
variable).
9. SETTING UP
ALIAS GROUPS
Groups let you run commands across multiple aliases
using the format wp @group {command}
wp @all - run commands against all aliases regardless
of group
wp cli alias - list all aliases available