Overview
WP-CLI is an open-source suite of command-line tools for managing and administering WordPress. Most functions that can be done in the WordPress Dashboard via a web browser can be completed by typing a command at a prompt.
For the GridManaged WordPressShared Hosting, wp-cli comes pre-installed! Simply connect to your server using SSH SSH SSH SSH to start using it. For information on how to use the various wp-cli commands feel free to check out the documentation below:
- Using WP-CLI
- WP-CLI commands (WordPress Developer Site)
Overview
WP-CLI is an open-source suite of command-line tools for managing and administering WordPress. Most functions that can be done in the WordPress Dashboard via a web browser can be completed by typing a command at a prompt.
To utilize this feature, DV/VPS servers will require WP-CLI to be installed. This can be done with just a few simple commands in SSH.
Instructions
- Connect to your server through SSH.
- Download wp-cli by running the following command:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- Make wp-cli executable by running:
chmod +x wp-cli.phar
- This next command will allow us to easily use wp-cli by typing "wp":
sudo mv wp-cli.phar /usr/local/bin/wp
- That's it! WP-CLI should now be installed.
- To check/update your wp-cli version in the future, you can run:
wp cli update
- To check/update your wp-cli version in the future, you can run:
Resources
- WP-CLI Handbook (WordPress Developer Site)
Comments