How to Install and Enable WP-CLI on WHM cPanel Server

This article provides a guide for how to install and enable WP-CLI on cPanel WHM server. This guide is intended for root-level cPanel VPS or cPanel Dedicated Server administrators.

What is WP-CLI?

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.

Install WP-CLI on cPanel WHM Server

To install and enable WP-CLI on cPanel/WHM server, perform the following steps.

  1. SSH the server as root user
  2. Run the following command to install the WP-CLI packages from Github:
    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
  3. Execute permissions with:
    chmod +x wp-cli.phar
  4. Allow every user to run WP-CLI by moving it to a directory in the system’s PATH:
    mv wp-cli.phar /usr/local/bin/wp

Conclusion

You have now installed WP-CLI on cPanel WHM server. If you face any difficulties, please open a support ticket for assistance.

Launch 100% SSD VPS from $2.49/mo!

  • wordpress, wordpress management, wordpress development, wpcli, installation
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Extended List of WordPress Ping Update Services

This article provides an extended list of WordPress ping Update Services. This list is an...

Remove Query Strings from Static Assets in WordPress Website

This article provides the required steps to remove query strings from static assets in WordPress...

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...