How to Install Shopify CLI and Theme on macOS

Tadashi Shigeoka ·  Mon, February 12, 2024

I’ll introduce how to install Shopify CLI and Theme on macOS.

Shopify | ショッピファイ

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 Git

Note: 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.

  1. How to Install asdf [macOS Edition]
  2. Managing Multiple Node.js Versions with asdf
  3. 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.