The command line interface for WordPress – called WP-CLI – is installed for all hosts on Servebolt and is available when you log in to your site with SSH.
You can use WP-CLI in the
/public folder (where your site is) by running the
wp command. The following commands lists everything the command is capable of:
Navigate to the webroot (/public folder) of your site by writing this in CLI:
1. cd 2. cd public
When that is done you can run the command
wp to get the WP-CLI manual.
WP automatically has access to your whole WordPress installation and database and no further usernames and passwords are required.
To easily install WordPress with WP CLI you can run:
wp core download
Then you can visit the URL for your site, and go through the WP installer.
Check what WordPress core version you are running
Easily check the version with:
wp core version
If your not on the latest version, make sure you upgrade by running:
wp core update
You can manage, update, download, install and uninstall plugins by running varieties of the
wp plugin command.
For example, you can install Servebolt Optimizer by running:
wp plugin install servebolt-optimizer
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.