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

Create admin user

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

Replace all URLs in the database

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

Run Servebolt Optimizer Analyze tables

Analyzing tables will make the db update it's indexes

wp servebolt db analyze

Did this answer your question?