How to Uninstall ShopifyCLI 2.26.0

Solved

How to Uninstall ShopifyCLI 2.26.0

CodesDoNotLie
Visitor
3 0 2

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?!

Accepted Solution (1)

Nate_PH
Visitor
1 1 1

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.

CLI.png
Additional Help

Nate_PH_0-1717938615975.pngNate_PH_1-1717938636130.png

Nate_PH_2-1717938651762.png

 

View solution in original post

Replies 2 (2)

Rronz1
Shopify Partner
6 1 2

Nate_PH
Visitor
1 1 1

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.

CLI.png
Additional Help

Nate_PH_0-1717938615975.pngNate_PH_1-1717938636130.png

Nate_PH_2-1717938651762.png