The Two Percent

Contact

[Solved] wp cli update gets Error: /usr/local/Cellar/wp-cli/ is not writable by current user.

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 try:

brew doctor

plus:

brew update

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.