WP-CLI is a command line interface for Wordpress, this allows you to update plugins, remove plugins, configure multi-site installations and more without using the Web interface. When proficient with WP-CLI you can save yourself a huge amount of time when developing or working to resolving issues!

A quick start guide for WP-CLI can be found at: here

To proceed with the installation, please follow the steps:

Step 1:  Log in to your account using SSH

Step 2: Download the wp-cli.phar file using wget or curl:

cd ~
curl -k -L https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > wp-cli.phar

Step 3: Next, check the Phar file to verify that it’s working:

php wp-cli.phar --info

Step 4: If you want to set an alias for WP-CLI executable, use the following command. Make sure to replace the user name with actual one.

echo 'alias wp="php /home/user_name/wp-cli.phar"' >> ~/.bashrc

Step 5: Once it is done, don't forget to run the following command.

source ~/.bashrc

Step 6: Now you will be able to run WP-CLI on your account by typing wp.

A detailed guide on WP-CLI usage can be found here.

Did this answer your question?