vccw-team / vccw

A Vagrant based development environment.
http://vccw.cc/
MIT License
1.02k stars 181 forks source link

How to set WP-CLI version to 1.4.* while actually is 1.5.0-alpha-930e5b2 #297

Open lc-d opened 7 years ago

lc-d commented 7 years ago

Operating System: MacOs 10.12.6 Vagrant Version: 2.0.1 Virtual Box Version: 5.1.26

Hi, I need to have WP-CLI 1.4.* because this is a composer requirement to install diggy/polylang-cli a command line tool for polylang plugin. Actually the stable version of wp-cli is at 1.4.1 but in vccw enviroment i got 1.5.0-alpha-930e5b2 version. This is my wp --info :

PHP binary: /usr/bin/php7.0 PHP version: 7.0.22-0ubuntu0.16.04.1 php.ini used: /etc/php/7.0/cli/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: /home/vagrant WP-CLI packages dir: /home/vagrant/.wp-cli/packages/ WP-CLI global config: /home/vagrant/.wp-cli/config.yml WP-CLI project config: WP-CLI version: 1.5.0-alpha-930e5b2

Thanks to anyone will help me to set a wp-cli version into vccw.

miya0001 commented 7 years ago

@lrnzctld

Please try:

sudo wp cli update --stable

Thanks 😊

lc-d commented 7 years ago

It was so simple! thanks a lot for your super fast answer.