Shopify CLI

What is Shopify CLI?
Shopify CLI (Command Line Interface) is a tool that helps developers build and manage Shopify apps and themes directly from the terminal.
With Shopify CLI, you can:
- Create new apps or themes
- Preview themes live on your computer
- Upload or download theme files
- Run your app locally for testing
- Automate common tasks like deployment
It saves time by letting you work faster without always using the Shopify admin dashboard. It’s ideal for beginners learning theme or app development.
How to install Shopify CLI?
On macOS (Homebrew):
brew tap shopify/shopify
brew install shopify-cli
On Windows or Linux (npm):
npm install -g @shopify/cli @shopify/theme
How to install Shopify CLI on Windows?
1. Install Node.js from nodejs.org
2. Open Command Prompt or PowerShell
3. Run this command:
This installs Shopify CLI globally on your system.
How to use Shopify CLI commands?
- To log in to your Shopify store:
shopify login
- To create a new app:
- To start local theme preview:
shopify theme dev
- To upload your theme to the store:
- To download theme files from the store:
- To list all commands:
How to login to Shopify CLI?
1. Open your terminal
2. Run this command:
3. A browser window will open
4. Log in to your Shopify account and select your store
5. You’ll be authenticated and ready to use CLI commands
How to use Shopify Theme CLI?
1. Open terminal
2. Go to your theme folder:
cd your-theme-folder
What is Shopify App CLI?
How to update Shopify CLI?
For macOS (Homebrew):
For Windows/Linux (npm):
Quick Tips for Using Shopify CLI
- Run shopify login before any theme or app command
- Use shopify theme pull to download your live store theme
- Use shopify theme push to upload changes
- Use shopify theme dev for local preview with hot reload
- Add –help after any command for usage info
- Keep CLI updated to avoid compatibility issues

About Author
Bhavik Koradiya is the CEO / Co. Founder of Silver WebBuzz Pvt. Ltd. Having 18+ years Experience in LAMP technology. I have expert in Magento, Joomla, WordPress, Opencart, e-commerce and many other open source. Specialties: Magento, WordPress, OpenCart, Joomla, JQuery, Any Open source.