We use WP-CLI a lot, and here is the most common WP-CLI commands we use in a cheat sheet.

WP-CLI man pages


Create admin user

wp user create [username] [e-mail] --role=administrator

List all users:

wp user list

Replace all URLs in the database

wp search-replace [old url] [new url] --all-tables

List pluginsĀ 

wp plugin list

To get the status of all plugins

wp plugin status

Run Servebolt Optimizer Analyze tables

Analyzing tables will make the db update it's indexes

wp servebolt db analyze
Did this answer your question?