WordPress wp-cli

wp-cli stands for WordPress Command Line Interface, and it's installed on all servers at DreamHost.

= How to Use = Official WP CLI website

Type  within a WordPress folder:

Available commands: wp dreamobjects [backup|schedule] wp cache [add|add_global_groups|add_non_persistent_groups|decr|delete|flush|get|incr|replace|set|type] wp comment [create|delete|trash|untrash|spam|unspam|approve|unapprove|count|status|last] wp core [download|config|install|install_network|version|update|update_db] wp db [create|drop|reset|optimize|repair|connect|cli|query|export|import] wp eval-file wp eval wp export [validate_arguments] wp generate [posts|users] wp home wp option [add|update|delete|get] wp plugin [activate|deactivate|toggle|path|update|uninstall|delete|status|install] wp post-meta [get|delete|add|update] wp post [create|update|delete] wp theme [activate|path|delete|status|install|update] wp transient [get|set|delete|type] wp user-meta [get|delete|add|update] wp user [list|delete|create|update] wp super-cache [flush|status|enable|disable]

See 'wp help ' for more information on a specific command.

Global parameters: --user=  set the current user --url=        set the current URL --path=      set the current path to the WP install --require=   load a certain file before running the command --quiet            suppress informational messages --version          print wp-cli version

=Common Commands=

These commands are the ones people use most often when debugging:


 * Deactivate a plugin:  or
 * To deactivate on Multisite Network Installed plugins:
 * Deactivate a theme:  (you have to actually activate a different theme)


 * Change a password:
 * (this will list all users, make a note of their IDs)
 * (changes the password to something you know)
 * Flush Cache:  or   (depending on which plugin you are using)
 * Re-update core:
 * Force the DB upgrade to run: