One of the many benefits of our WordPress Hosting plans is the ability to easily manage WordPress from the command line, using WP-CLI, or WordPress Command Line Interface. With WP-CLI, you can use the plugin command to manage your WordPress plugins from the command line. This command can be used to install, remove, update, and activate/deactivate a plugin. In this guide, you will learn how to install and activate a WordPress plugin using the WP-CLI plugin command.
Install and Activate a Plugin
- SSH into your server as the cPanel user that owns the website you would like to install the plugin on.
- Use the cd command to switch to the document root directory of your website.Example: cd public_html/my_website
NOTE: Be sure to replace public_html/my_website with the actual path to the document root directory of your website.
- There are multiple ways to obtain/install a plugin. Click on one of the buttons below to expand the specific instructions for the method that works best for you. If you are unsure of which option to choose, we recommend expanding the Slug option to follow those instructions.
Congratulations! Now you know how to use WP-CLI to install a WordPress plugin from the command line. Want to learn more about WP-CLI? Be sure to check out our WP-CLI Education Channel.