Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 <command> to display detailed information about a specific command.
app: Suite of commands for developing apps. See shopify app <command> --help for usage of each command.
Usage: shopify app [ connect | create | deploy | open | serve | tunnel ]
extension: Suite of commands for developing app extensions. See shopify extension <command> --help for usage of each command.
Usage: shopify extension [ build | check | connect | create | push | register | serve | tunnel ]
login: Log in to the Shopify CLI by authenticating with a store or partner organization
Usage: shopify login [--store/-s STORE]
logout: Log out of an authenticated partner organization and store, or clear invalid credentials
Usage: shopify logout
populate: Populate a Shopify store with example customers, orders, or products.
Usage: shopify populate [ customers | draftorders | products ]
reporting: Turns anonymous reporting on or off.
Usage: shopify reporting on
store: Display current store.
Usage: shopify store
switch: Switch between development stores in your partner organization
Usage: shopify switch [--store/-s STORE]
theme: Suite of commands for developing Shopify themes. See shopify theme <command> --help for usage of each command.
Usage: shopify theme [ check | delete | init | language-server | list | open | package | publish | pull | push | serve | share ]
version: Prints version number.
Usage: shopify version
whoami: Identifies which partner organization or store you are currently logged into.
Usage: shopify whoami
How to remove this?!
Solved! Go to the solution
This is an accepted solution.
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/cli again. It will install 3.x version.
Additional Help
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-s...
These two might help
This is an accepted solution.
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/cli again. It will install 3.x version.
Additional Help
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024