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.
This article covers how to install WP-CLI on a VPS or Dedicated Server plan. This is used when WP-CLI commands return -bash: wp: command not found
.
Related Articles
Install WordPress Plugin Using WP-CLI
Change WordPress Theme Using WP-CLI
Installing 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 server as root
- Run the following to download WP-CLI
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- Next, give the file execute permissions
chmod +x wp-cli.phar
- Move the WP-CLI binary to a directory in the system's PATH so that every user on the server can run it
mv wp-cli.phar /usr/local/bin/wp
Comments
0 comments
Article is closed for comments.