Wp-cli: How to uninstall wp-cli that was installed with installer.sh

Created on 23 Jul 2014  路  3Comments  路  Source: wp-cli/wp-cli

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.

question

Most helpful comment

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

All 3 comments

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
Was this page helpful?
0 / 5 - 0 ratings