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.
Pre-release CLI versions
Anchor link to section titled "Pre-release CLI versions"If you want to preview functionality from the next release of Shopify CLI, then you can install a pre-release version. The method for installing and using a pre-release version depends on your operating system.
You can install @pre
globally for theme development using Homebrew.
To run commands using a prerelease version installed with homebrew, use the shopify-pre
executable:
Windows and Linux
Anchor link to section titled "Windows and Linux"You can install @pre
globally for theme development using npm
.
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.