I’ll introduce how to install Shopify CLI and Theme on macOS.
Background: Not Wanting to Install via Brew
The Shopify official documentation Install Shopify CLI describes how to install Shopify CLI.
However, the macOS Requirements include the following, and since I don’t want to install Node.js and Ruby via brew, this article will introduce how to globally install using Node.js managed with asdf.
Homebrew Node.js 18 or higher. Ruby GitNote: When you install Shopify CLI using Homebrew, Homebrew installs Node.js, Ruby, and Git for you.
Prerequisites: Installing asdf, Node.js, and Ruby
If you haven’t installed asdf or globally installed Node.js and Ruby with asdf, install them as prerequisites.
- How to Install asdf [macOS Edition]
- Managing Multiple Node.js Versions with asdf
- Managing Multiple Ruby Versions with asdf
Installing @shopify/cli and @shopify/theme with npm
npm install -g @shopify/cli @shopify/theme
That’s all from the Gemba, where I installed Shopify CLI and Theme on macOS.
