How-To Install WP-CLI on shared hosting

Updated version of How-To Install WP-CLI on shared hosting. This guide has been tested and is working for my provider and WP-CLI 0.18.0

rm -rf ~./wp-cli
mkdir ~./wp-cli
cd ~./wp-cli
composer create-project wp-cli/wp-cli --no-dev
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
alias wp='php ~./wp-cli/wp-cli.phar'

Leave a Reply