How to Uninstall ShopifyCLI 2.26.0

I want to uninstall the old ShopifyCLI 2.26.0 that is installed in my computer because I want to use the new ShopifyCLI 3.*

but none of the commands are working:

npm uninstall -g @shopify/cli
npm uninstall -D @shopify/cli @shopify/app

when I try to check the version, it’s still here:

shopify version
2.26.0

I tried reading the list of commands from shopify help, but no uninstall command is available:

> shopify help
Use shopify help 

How to remove this?!

I just found it and deleted the files manually.

https://shopify.dev/docs/storefronts/themes/tools/cli/migrate,
https://shopify.dev/docs/storefronts/themes/tools/cli/cli-2/upgrade-uninstall#uninstall-the-legacy-shopify-app-cli

These two might help

1 Like

Try this. It removed mine…

  • Use Powershell Terminal

  • Get-Command shopify | Select-Object -ExpandProperty Source

  • Remove-Item -Force “C:\Path\To\shopify”

Note: From the Get command, if you see a path, follow the steps next to it and replaced it based on path that you see. usually you will see /shopify.bat or /shopify. Delete both. Then, run again ‘shopify version’ if you see an error, you are successful. Then do npm install -g @Shopify_77 /cli again. It will install 3.x version.

Additional Help

2 Likes