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
- http://wp-cli.org/
- https://make.wordpress.org/cli/handbook/
- https://developer.wordpress.org/cli/commands/
- https://github.com/oerdnj/deb.sury.org/issues/263 - Storing wp core download
- https://github.com/woocommerce/woocommerce/wiki/WC-CLI-Commands
- https://wordpress.stackexchange.com/questions/199674/using-wp-cli-can-i-not-query-pages-by-their-title