When I try to update wp-cli from the installed version 2.2.0 to 2.4.0 I get the following error.
➜ Fawkes: ~/Local_Beta_Sites/lightning/app/public wp cli update
You have version 2.2.0. Would you like to update to 2.4.0? [y/n] y
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.4.0/wp-cli-2.4.0.phar...
md5 hash verified: dedd5a662b80cda66e9e25d44c23b25c
sh: /Applications/Local: No such file or directory
Error: The downloaded PHAR is broken, try running wp cli update again.
I understand that /Applications/Local doesn’t exist but shouldn’t it point to the currently running version of Local? In this case /Applications/Local\ Beta.app.
What do you get with “which wp?” Are you using the “Open Site Shell” command to get to a terminal for this? When I do so in Mac on my machine I’m having no issues with wp cli update
Andy, we’ll have a solution for this in a release soon. The result… you shouldn’t have to run that command anyway so we’re going to make sure each update comes with the latest wp-cli. Thanks for pointing this out.