How do I enable the WordPress CLI (WP-CLI) on my hosting account?
You can install WP-CLI on any hosting plan by connecting via SSH and running the following commands:
# Download WP-CLIcurl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
# Make it executablechmod +x wp-cli.phar
# Create a bash aliasalias wp='~/wp-cli.phar'
# Make the alias permanentecho "alias wp='~/wp-cli.phar'" >> ~/.bashrc
# Reload your shell configurationsource ~/.bashrcYou can now navigate to your WordPress installation directory and use the wp command.
For help connecting via SSH, see How do I log into SSH?.