🧾 Prerequisites
Before installing Shopify CLI, make sure you have:
- Node.js (version 18.x or later)
- Git
- Package Manager:
npm,yarn, orpnpm - Terminal/Command Prompt access
💻 For Windows Users
✅ Step 1: Install Node.js
- Visit: https://nodejs.org
- Download the LTS version (v18 or newer)
- Run the installer and check “Add to PATH” during setup.
To check if Node.js and npm installed correctly:
node -v
npm -v
✅ Step 2: Install Git
- Download Git from: https://git-scm.com/download/win
- Install it using default settings.
Check Git version:
git --version
✅ Step 3: Install Shopify CLI
Open Command Prompt or PowerShell, then run:
npm install -g @shopify/cli@latest
This installs the CLI globally for use in any project.
🍎 For macOS Users
✅ Step 1: Install Homebrew (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
✅ Step 2: Install Shopify CLI
brew tap shopify/shopify
brew install shopify-cli
🐧 For Linux (Ubuntu/Debian)
curl -s https://shopify.dev/cli/install | sh
You can also use
npm install -g @shopify/cli @shopify/themeif you prefer using Node.
✅ Step 4: Verify Installation
After installation, check that Shopify CLI is working:
shopify version
You should see the version number if it’s installed correctly.
🧪 Bonus: Test It!
Try creating a new Shopify theme using Dawn:
shopify theme init my-new-theme
cd my-new-theme
shopify theme dev
🧰 Shopify CLI Useful Commands
| Command | Description |
|---|---|
shopify login | Log in to your Shopify Partner account |
shopify theme init | Create a new theme using a template |
shopify theme serve or dev | Preview your theme locally |
shopify app create | Start a new Shopify app |
shopify extension create | Create a Shopify extension |
The next tutorial will focus on Shopify functions development.