Installing Wordpress CLI

Installing Wordpress CLI into Ubuntu 20.04

whenever possible download files in /tmp folder

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar –info

To be able to type just wp, instead of php wp-cli.phar, you need to make the file executable and move it to somewhere in your PATH. For example:

chmod +x wp-cli.phar

sudo mv wp-cli.phar /usr/local/bin/wp

wp –info

Previous
Next