Is there a way of removing a version of wp-cli that has been installed with the old installer.sh?
I'm finding it difficult to work out what the installer script did.
Here's the old version of the script: https://github.com/wp-cli/wp-cli.github.com/commit/2ba5fcd0e53aeb314d4565bff71b72ef06011ea0
Unless you specified an $INSTALL_DIR, the install script put everything in a hidden subdirectory off $HOME (ref).
You might've added a reference in your .bash_profile too (ref)
If you installed quite a while ago and these instructions don't help, you can look through the history to see how the script has changed.
So what is the way to uninstall it before doing a fresh install?
So what is the way to uninstall it before doing a fresh install?
Delete the file. You can find it with which wp:
$ which wp
~/bin/wp
$ rm ~/bin/wp
Most helpful comment
Delete the file. You can find it with
which wp: