Due to the possibility of easy management of WordPress using WP-CLI you can use the plugin command to manage the WordPress plugins from the command line. This command is used to install, uninstall, update, enable/disable a plugin.

To install and activate a WordPress plugin using the WP-CLI plugin command, we recommend that you follow the instructions below.

- Log in to the server via SSH with the cPanel user who owns the website you want to work on.

- Use the cd command to access the root folder of your website eg:

cd public_html/my_website

Replace public_html/my_website with the real path to the root folder of your website.

There are several ways to get/install a plugin. Choose the one that suits you best. If you are not sure which is the best option, we recommend the Slug option.

Slug

Run the search subcommand to find the plugin:

wp plugin search gutenberg

Replace the search term given as an example (gutenberg) with the name of the plugin you are looking for.

- Notice the slug value that appears next to the plugin you want to install. You will use this option in the command to install and activate the searched plugin.

The table below is an example of the output (search results) of executing the above command:

Name Slug Rating
Gutenberg gutenberg 52
Media Cleaner media-cleaner 92
WP Multilang wp-multilang 100
Custom CSS – Whole Site and Per Post custom-css-whole-site-and-per-post 68
Easy WP Meta Description easy-wp-meta-description 100
Classic Editor classic-editor 98
Gutenberg Custom Fields gutenberg-custom-fields 0
Blocks for Gutenberg blocks-for-gutenberg 0
Japanese font for gutenberg japanese-font-gutenberg 0
Dismiss try Gutenberg Nag Dashboard Widget dismiss-gutenberg-nag 0

 Execute the following command by replacing gutenberg with the slug value found in the search:

wp plugin install gutenberg –activate

ZIP File

- Download the plugin's ZIP file and upload it to your server. Make sure you only upload the ZIP file to the root folder of your website.


Run the following command, replacing gutenberg.1.9.1.zip with the real name of the plugin file:

wp plugin install gutenberg.1.9.1.zip –activate

Download Link

Find the URL to download the plugin you want to install.

Run the following command, replacing https://downloads.wordpress.org/plugin/gutenberg.1.9.1.zip with the actual download link of your plugin:

wp plugin install https://downloads.wordpress.org/plugin/gutenberg.1.9.1.zip –activate

 

For assistance in applying the above instructions on HostX servers please contact us. HostX offers the fastest WordPress hosting and can help you solve your problems.

Cette réponse était-elle pertinente? 0 Utilisateurs l'ont trouvée utile (0 Votes)