Skip to content

Instantly share code, notes, and snippets.

@mizner
Forked from lukecav/WP-CLI-Commands
Created July 22, 2016 09:02
Show Gist options
  • Save mizner/6f0ba176650693402aef4e0cd1475995 to your computer and use it in GitHub Desktop.
Save mizner/6f0ba176650693402aef4e0cd1475995 to your computer and use it in GitHub Desktop.
WP-CLI - Handy Commands
Search and Replace
https://wp-cli.org/commands/search-replace/
wp search-replace
wp search-replace 'http://example.dev' 'http://example.com'
Optmize database
https://wp-cli.org/commands/db/optimize/
Repair database
http://wp-cli.org/commands/db/repair/
WordPress core version
https://wp-cli.org/commands/core/version/
wp core version
Active plugins
http://wp-cli.org/commands/plugin/list/
wp plugin list
wp plugin list --status=active
Deactivate plugin
http://wp-cli.org/commands/plugin/deactivate/
Theme list
http://wp-cli.org/commands/theme/list/
wp theme list --status=active
Activate default theme
http://wp-cli.org/commands/theme/activate/
wp theme activate twentysixteen
Delete comment
http://wp-cli.org/commands/comment/delete/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment