Switching Shopify-CLI Versions with Homebrew

Is there a way to switch between shopify-cli versions with homebrew? I notice in the shopify-cli docs it says to use version 2 for theme development but version 3 can be used when building applications. So I have just been continuing to use version 2 for everything because I wasn’t sure if there was a good way to have installed 2 different versions and just switch between them depending on what I am doing at the time. Anybody have any suggestions for doing that? I would thing homebrew can do such a thing, I just wanted to get some feedback on what everybody else is doing.

Thank You…

If you’re using homebrew CLI v2 can be installed with

brew install shopify-cli@2

And after you install it you use shopify2 instead of shopify in the terminal.

2 Likes

yeah that worked, thank you. I had uninstalled the cli with brew and reinstalled it with gem at a specific version. But now I can have both 3 and 2 installed with brew which makes managing them a little easier. Thanks.