cli-tools
Skill48 starsChanged 9 months agoMITView on GitHub
Master Shopify CLI and developer tools. Use this skill for using Shopify CLI commands, theme development workflow, app development workflow, debugging with Theme Check, using the Liquid language server, and configuring development environments. Covers VS Code extension and development best practices.
- Reads credentials
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- niksavis/handilytheir own version, first seen Nov 8, 2026
- niksavis/basiclytheir own version, first seen Nov 7, 2026
- juandelossantos/another-agent-skillstheir own version, first seen Oct 17, 2026
- YepAPI/skillstheir own version, first seen Apr 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- YepAPI/skills★ 8same name
- niksavis/basicly★ 2same name
- niksavis/handily★ 2same name
- juandelossantos/another-agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- api-graphqlSkill
- app-developmentSkill
- checkout-customizationSkill
- headless-hydrogenSkill
- liquid-templatingSkill
- shopify-functionsSkill
- theme-developmentSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill when:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shopify CLI & Developer Tools
When to use this skill
Use this skill when:
- Installing and configuring Shopify CLI
- Running theme development commands
- Running app development commands
- Using Theme Check for linting
- Configuring VS Code for Shopify development
- Debugging Liquid code
- Setting up development workflows
Installing Shopify CLI
Prerequisites
- Node.js 18+ - Required for all Shopify development
- Git - For version control
- Package manager - npm or pnpm
Installation
# Install globally via npm
npm install -g @shopify/cli @shopify/theme
# Or via Homebrew (macOS)
brew tap shopify/shopify
brew install shopify-cli
# Verify installation
shopify versionAuthentication
# Log in to your Partner account
shopify auth login
# Log out
shopify auth logout
# Check current auth status
shopify auth infoTheme CLI Commands
Initialize Theme
# Clone Skeleton theme as starting point
shopify theme init my-theme
# Clone from custom repository
shopify theme init my-theme --clone-url git@github.com:org/repo.gitDevelopment Server
# Start dev server (auto-connects to store)
shopify theme dev
# Connect to specific store
shopify theme dev --store my-store.myshopify.com
# Specify theme to work on
shopify theme dev --theme THEME_ID
# Use specific port
shopify theme dev --port 9292
# Open in default browser
shopify theme dev --open
# Live reload options
shopify theme dev --live-reload hot-reload
shopify theme dev --live-reload full-page
shopify theme dev --live-reload offPush & Pull
# Push local changes to Shopify
shopify theme push
# Push as new unpublished theme
shopify theme push --unpublished
# Push to specific theme
shopify theme push --theme THEME_ID
# Push only specific files
shopify theme push --only templates/*.json
# Push ignoring specific files
shopify theme push --ignore config/settings_data.json
# Pull theme from Shopify
shopify theme pull
# Pull specific theme
shopify theme pull --theme THEME_ID
# Pull only specific files
shopify theme pull --only sections/*.liquidTheme Management
# List all themes
shopify theme list
# Publish a theme
shopify theme publish --theme THEME_ID
# Rename a theme
shopify theme rename --theme THEME_ID --name "New Name"
# Delete a theme
shopify theme delete --theme THEME_ID
# Package theme for upload
shopify theme package
# Open theme in browser
shopify theme open --theme THEME_IDTheme Check (Linting)
# Run Theme Check on current directory
shopify theme check
# Check specific path
shopify theme check --path ./sections
# Auto-fix issues
shopify theme check --auto-correct
# Output as JSON
shopify theme check --output json
# Fail on warnings (useful for CI)
shopify theme check --fail-level warning
# Show offenses inline
shopify theme check --print-offensesTheme Info & Console
# Show theme environment info
shopify theme info
# Start Liquid REPL console
shopify theme console
# Pull metafields for local development
shopify theme metafields pullApp CLI Commands
Create App
# Initialize new app
shopify app init
# Choose template interactively:
# - Remix (recommended)
# - Node
# - Ruby
# - PHPDevelopment
# Start dev server with tunnel
shopify app dev
# Reset app configuration
shopify app dev --reset
# Skip tunnel (use your own)
shopify app dev --no-tunnel
# Specify port
shopify app dev --port 3000Generate Extensions
# Generate new extension
shopify app generate extension
# Extension types available:
# - Checkout UI
# - Admin UI
# - Theme App Extension
# - Post-purchase UI
# - Shopify Function
# - Web Pixel
# - Flow Action/Trigger
# - POS UIDeployment
# Deploy app and extensions
shopify app deploy
# List app versions
shopify app versions list
# Release specific version
shopify app release --version VERSION_IDApp Info
# Show app info
shopify app info
# Show environment variables
shopify app env show
# Pull environment variables
shopify app env pullFunctions
# Run function locally
shopify app function run --path extensions/my-function
# Generate types for function
shopify app function typegen --path extensions/my-functionVS Code Extension
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search "Shopify Liquid"
- Install the official extension
Or install from CLI:
code --install-extension Shopify.theme-check-vscodeFeatures
| Feature | Description |
| Syntax Highlighting | Liquid, HTML, CSS, JS highlighting |
| Code Completion | Objects, filters, tags, schema |
| Documentation on Hover | Inline docs for Liquid code |
| Theme Check Integration | Real-time linting |
| Schema Completion | JSON schema in sections |
| Go to Definition | Navigate to snippets/sections |
| Auto-closing Pairs | Liquid tags and braces |
| Code Formatting | Format Liquid code |
Configuration
// .vscode/settings.json
{
"shopifyLiquid.formatterDevPreview": true,
"shopifyLiquid.themeCheckNextDevPreview": true,
"editor.formatOnSave": true,
"[liquid]": {
"editor.defaultFormatter": "Shopify.theme-check-vscode"
},
"files.associations": {
"*.liquid": "liquid"
}
}Theme Check Configuration
.theme-check.yml
# Extends default configuration
extends: :default
# Enable/disable specific checks
SyntaxError:
enabled: true
severity: error
DeprecatedFilter:
enabled: true
severity: warning
MissingTemplate:
enabled: true
UnusedAssign:
enabled: true
UnusedSnippet:
enabled: false
ImgWidthAndHeight:
enabled: true
AssetSizeCSS:
enabled: true
threshold_in_bytes: 100000
AssetSizeJavaScript:
enabled: true
threshold_in_bytes: 50000
# Ignore specific files
ignore:
- vendor/**/*
- assets/vendor.jsCommon Theme Check Errors
| Error | Solution |
MissingTemplate | Create missing template file |
DeprecatedFilter | Update to new filter syntax |
UnusedAssign | Remove or use the variable |
SyntaxError | Fix Liquid syntax |
AssetSizeCSS | Reduce CSS file size |
ImgWidthAndHeight | Add width/height to images |
Development Workflow
Theme Development
# 1. Clone starter theme
shopify theme init my-theme
cd my-theme
# 2. Start development
shopify theme dev --store my-store.myshopify.com
# 3. Make changes (auto-synced)
# Edit files in your editor
# 4. Run linter
shopify theme check
# 5. Push when ready
shopify theme push --theme THEME_ID
# 6. Publish live
shopify theme publish --theme THEME_IDApp Development
# 1. Create app
shopify app init
# 2. Add extensions
shopify app generate extension
# 3. Start development
shopify app dev
# 4. Test locally
# App runs at http://localhost:3000
# 5. Deploy
shopify app deployEnvironment Configuration
.shopify-cli.yml (Theme)
shop: my-store.myshopify.com
theme: THEME_ID
path: .
ignore:
- config/settings_data.json
- .git/*.env (App)
SHOPIFY_API_KEY=your-api-key
SHOPIFY_API_SECRET=your-api-secret
SHOPIFY_APP_URL=https://your-app.com
SCOPES=read_products,write_products
HOST=https://tunnel.ngrok.ioCI/CD Integration
GitHub Actions (Theme Check)
# .github/workflows/theme-check.yml
name: Theme Check
on: [push, pull_request]
jobs:
theme-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Shopify CLI
run: npm install -g @shopify/cli @shopify/theme
- name: Run Theme Check
run: shopify theme check --fail-level errorGitHub Actions (App Deploy)
# .github/workflows/deploy.yml
name: Deploy App
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm ci
- name: Deploy
env:
SHOPIFY_CLI_PARTNERS_TOKEN: ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }}
run: npm run deployTroubleshooting
Common Issues
CLI not found after install:
# Check Node.js path
which node
# Reinstall globally
npm install -g @shopify/cliAuthentication issues:
# Clear auth and re-login
shopify auth logout
shopify auth login --resetTheme dev not syncing:
# Check .shopify-cli.yml configuration
# Ensure correct store URL
# Check file permissionsPort already in use:
# Use different port
shopify theme dev --port 9293
shopify app dev --port 3001Quick Reference
Theme Commands
| Command | Description |
theme init | Initialize theme |
theme dev | Start dev server |
theme push | Upload to store |
theme pull | Download from store |
theme check | Run linter |
theme list | List themes |
theme publish | Publish theme |
App Commands
| Command | Description |
app init | Create app |
app dev | Start dev server |
app deploy | Deploy app |
app generate extension | Add extension |
app info | Show app info |
app function run | Test function |
Resources
- Shopify CLI Reference
- Theme Check Docs
- VS Code Extension
- Language Server
- Dawn Theme Reference
- GitHub Actions Integration
For theme development, see the theme-development skill. For app development, see the app-development skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

