πŸ› οΈ How to Install Shopify CLI on Your PC



🧾 Prerequisites

Before installing Shopify CLI, make sure you have:

  1. Node.js (version 18.x or later)
  2. Git
  3. Package Manager: npm, yarn, or pnpm
  4. 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

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

CommandDescription
shopify loginLog in to your Shopify Partner account
shopify theme initCreate a new theme using a template
shopify theme serve or devPreview your theme locally
shopify app createStart a new Shopify app
shopify extension createCreate a Shopify extension

The next tutorial will focus on Shopify functions development.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.