If you’re a Shopify developer or store owner looking to streamline your workflow, the Shopify CLI is an essential tool. This guide will walk you through how to install the Shopify CLI on macOS.
🔧 Step 1: Install Homebrew (if you haven’t already)
Homebrew is a package manager for macOS that makes it easy to install software from the command line.
Open your Terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
🌐 Step 2: Tap Shopify’s CLI Repository
Once Homebrew is installed, add Shopify’s CLI repository:
brew tap shopify/shopify
💻 Step 3: Install Shopify CLI
With the repository added, you can now install the Shopify CLI:
brew install shopify-cli
ℹ️ Step 4: Check the Installed Version
After installation, check the current version to make sure it’s installed correctly:
shopify version
Example output:
Current Shopify CLI version: 3.50.0
💡 Version 3.51.0 available!
💪 Optional: Install the Latest Version via npm
If you prefer or need the latest version immediately, you can also install Shopify CLI globally using npm:
npm install -g @shopify/cli@latest
🎉 You’re All Set!
You now have Shopify CLI installed on your Mac. You can start using it to create apps, themes, and manage your store directly from the terminal.
Need help with your first command? Just type:
shopify help
Happy coding! 🤖