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
wp plugin list
To get the status of all plugins
wp plugin status
Run Servebolt Optimizer Analyze tables
wp servebolt db analyze
Analyzing tables will make the db update it’s indexes
Give us your feedback on this article
Did this help you?
Want to speed up your site, easily?
Set up your site on Servebolt, free of charge for 60 days, and see for yourself how fast it can be on our extremely fast hosting.
A faster site converts better, ranks better on Google, and is better for the climate.