Install Shopify CLI
This guide shows you how to install Shopify CLI on macOS, Windows, or Linux.
Requirements
Anchor link to section titled "Requirements"The requirements to install and run Shopify CLI depend on your operating system:
Operating system | Requirements |
---|---|
macOS |
Note: When you install Shopify CLI using Homebrew, Homebrew installs Node.js, Ruby, and Git for you. |
Windows |
|
Linux |
Installing requirements for Linux
Anchor link to section titled "Installing requirements for Linux"Use the following commands to install all of the requirements to install and run Shopify CLI on Linux, other than Node.js:
Install Shopify CLI
Anchor link to section titled "Install Shopify CLI"Shopify CLI is managed as a set of Node.js packages:
You can install these packages using Homebrew on macOS, or by installing the packages globally on Windows or Linux.
You can install Shopify CLI on macOS using Homebrew.
You need to add Shopify's third-party repositories to Homebrew using brew tap
before you can install Shopify CLI.
Windows and Linux
Anchor link to section titled "Windows and Linux"To install Shopify CLI for themes, install the @shopify/cli
and @shopify/theme
Node.js packages globally using the command line.
Verify the installation
Anchor link to section titled "Verify the installation"To verify that Shopify CLI is installed properly, run the following command:
The command returns a version number.