CLI / Terminal Access
30-60 minAdvanced
Shopify CLI is the command-line tool for developing themes and apps locally options. It replaces the need for FTP.
Prerequisites
- Terminal
- Node.js installed
- Shopify Partner Account
Easy
Installing CLI
Setting up the environment.
1
Setup
1
Install CLI: npm install -g @shopify/cli @shopify/theme
2
Login: shopify login --store your-store.myshopify.com
Example
npm install -g @shopify/cli @shopify/theme
shopify loginVerification Checklist
- Correctly logged in via
shopify login shopify theme devlaunches local preview- Changes in local code reflect in browser
Pro Tips
- Use `shopify theme check` to lint your code for errors
- Use `.shopifyignore` to exclude files from upload
- Always use a separate 'Development' theme ID for `shopify theme dev` to avoid affecting live site
Common Issues & Fixes
Problem: Login loop or permission denied
Solution: Run `shopify logout` then `shopify login` again. Check Partner Dashboard permissions.