WP-CLI is the WordPress command-line interface. This allows you to update WordPress plugins and themes, deactivate or install plugins, and more, all without using a web browser.
Here, we cover installing WordPress Command Line (WP-CLI) on a Control Web Panel (CWP) server.
Install WP-CLI
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the CWP server is root
- Run the command
cd /opt - Run the command
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.pharto download WP-CLI - Run the command
php wp-cli.phar --infoto confirm that WP-CLI is downloaded correctly - Set the execute permissions using
chmod +x wp-cli.phar - Run the command
mv wp-cli.phar /usr/local/bin/wpto rename the file to wp - Move into a WordPress installation directory
- Run the command
wp core versionto confirm that WP-CLI was installed
Comments
0 comments
Article is closed for comments.