Installation (WP-CLI)

Uit De Vliegende Brigade
(Doorverwezen vanaf Installation WP-CLI)
Naar navigatie springen Naar zoeken springen

Installatation

The project consists of only one phar file. Installation is a piece of cake. I put it in /opt by default:

cd /opt
sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
sudo mv wp-cli.phar wp
sudo chmod o+x wp

Test:

wp --info

or just

wp

Update WP-CLI

You can update WP-CLI using

 wp cli update

However, this didn't work, because the process doesn't have write access to /usr/local/bin. sudo wp cli update throws an error that it can't find the path.

Other solution: Reinstall. See elsewhere.

Sources