π§Ύ 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/theme
if 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.