I was running WordMove to transfer WordPress files, and it told me my WP-CLI was out of date.
OK, let me update it then!
$ wp cli update
And I get:
$ Error: /usr/local/Cellar/wp-cli/2.2.0/bin/wp is not writable by current user.
What? Can’t be right. Must be my permissions.
sudo chown -R $(whoami) /usr/local/Cellar
Try again and still get the error.
sudo chown -R $(whoami) $(brew --prefix)/*
And then I remembered.
I’d installed WP CLI by HomeBrew! D’Oh!
So all I had to do was run:
brew install wp-cli
And the latest version is installed.