Yes, wp-cli gets installed on all our servers, you'll be able to use it as the command wp when you're logged into SSH.
Some useful commands from wp-cli:
Create an admin user:
wp user create myuser email@example.com --role=administrator
Verify WordPress core installation:
wp checksum core
Install and activate a new plugin:
wp plugin install litespeed-cache --activate
Reinstall an existing plugin:
wp plugin install litespeed-cache --force
Update all plugins:
wp plugin update --all
Change http to https:
wp search-replace 'http://mydomain.com' 'https://mydomain.com' --skip-columns=guid --precise
You might want to use
--all-tables when using search-replace to look at all tables in the database and not just the ones registered by the
Most of the commands have a
--dry-run flag that you can use to test what would be changed.
Please sign in to leave a comment.