How to update WP-CLI on Windows via Composer?
I installed wp-cli back in April on my Windows box using composer. I believe with the following command: composer create-project wp-cli/wp-cli --no-dev
as outlined in the alternate install methods on here.
I have since used "composer update --no-dev
" to update but just realized that it is only updating the dependencies and not the wp-cli package itself. If I run a "wp cli version
" it reports version WP-CLI 0.18.0, yet v0.20.4 is the latest released version.
I can't seem to find any way to update wp-cli. I suppose I could just install a new copy each time but that seems silly. Regardless, I did test and if I issue a "composer create-project wp-cli/wp-cli --no-dev
" in a new directory it downloads the latest version. I also tried "wp cli update
" but it reports back "Error: You can only self-update PHARs."