Here, we cover installing WordPress Command Line (WP-CLI) on a Control Web Panel (CWP) server.
Install WP-CLI
- SSH into CWP VPS as 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.