Skip to main content
WP-CLI is installed on all servers. When you are logged in over SSH, run it as the wp command.

Useful commands

Create an administrator user

Verify WordPress core and plugins

Install and activate a plugin

Reinstall an existing plugin

Update all plugins

Search and replace (for example HTTP to HTTPS)

For search-replace, add --all-tables if you need every table in the database, not only those WordPress registers via $wpdb.
Many subcommands support --dry-run so you can preview changes before applying them.
Last modified on April 6, 2026