How-To Update WP-CLI

It`s very easy to update the WP-CLI tools, but its difficult to find how.

Enter the following lines in the terminal to update WP-CLI:

cd ~/.wp-cli
php composer.phar self-update
php composer.phar require 'wp-cli/wp-cli=@stable'

Leave a Reply

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.