How to install WP-CLI on Ubuntu 16.04

cd "$HOME"
wget -O "wp-cli.phar" "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
sudo cp "wp-cli.phar" "/usr/local/bin/wp"
sudo chmod +x "/usr/local/bin/wp"
rm -f "wp-cli.phar"

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.