Skip to main content
All CollectionsGeneral WordPress
WP-CLI: Install WP-CLI manually (Requires SSH)
WP-CLI: Install WP-CLI manually (Requires SSH)

Follow this article to manually install the WP-CLI (WordPress Command Line Interface) tool on your cPanel account.

Jay avatar
Written by Jay
Updated over 2 weeks ago

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 these below shared steps:

Step #1:

Log in to your server 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.



Congratulations! You've successfully WP-CLI manually on your server.

If you have any questions, please don’t hesitate to contact our team via live chat.

For technical inquiries, please feel free to reach our support team by emailing support@bigscoots.com from your registered email or by submitting a support ticket.

Did this answer your question?