Switching to Homebrew Ruby requires you update the PATH environment variable (zsh shell in OSX11 instead of bash) by running...
$ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
I still see a Shopify warning that Ruby 3.1.0 is outside the range supported by the CLI but assume that's a Shopify issue because this page states a requirement of Ruby 2.7+.
Answer from CMSCSS on Stack Overflowcommand line interface - Shopify CLI: Best way to update Ruby for Shopify on OSX 11? - Stack Overflow
Why are my Shopify CLI commands not recognized?
Do you use shopify cli to build your app?
Cli login auth command
Videos
Switching to Homebrew Ruby requires you update the PATH environment variable (zsh shell in OSX11 instead of bash) by running...
$ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
I still see a Shopify warning that Ruby 3.1.0 is outside the range supported by the CLI but assume that's a Shopify issue because this page states a requirement of Ruby 2.7+.
Had a problem today configuring shopify-cli, especially to run shopify theme pull which was giving an error and never concluding the pull.
From the researches I have done, found that for the best use of shopify-cli you must use ruby 3.0.0 and node above version 14.
For changing Ruby versions I suggest you install RBENV, many people claim that RVM is the best choice but seasoned rubyists have told me that that RVM is sharp and smart but it all goes through the window when it ditches you on the road and you spend several hours trying to fix it, so my call it RBENV to manage your versions.
Some work around may be done on the zshrc file as mentioned in the above comment
I’m new to shopify app development, I’m reading the tutorial and it seems like shopify has a default stack in mind react router + prisma etc. since my background is more on backend development with.net or golang, I’m thinking of if i should use the cli to scaffold an app or just build from scratch with stack that I’m more familiar with? But i also don’t want to fight with the ecosystem if that will be a lot harder to do. Wondering what’s your thought and recommendations, thanks!