Quick guide to working with Shopify stores from Claude Code (the Code tab of Claude Desktop).
What each piece does
| Piece | What it's for | Does it touch the store? |
|---|---|---|
Shopify CLI (shopify) | Stores each store's login and runs the Admin API queries and changes | Yes |
Shopify AI Toolkit (shopify-ai-toolkit plugin, includes the Dev MCP) | Shopify documentation and GraphQL query validation | No, it only reads docs |
| Official Shopify connector in the Claude chat | Terminal-free alternative for one-off tweaks; goes item by item and asks for confirmation on every change | Yes |
For bulk changes (translations, metafields, imports) use the CLI from the Code tab.
You can extend this with Claude skills: see Claude skills for Shopify in the wiki.
1. Installation (once per computer)
Install Shopify CLI with Homebrew. npm install -g fails because of permissions (EACCES) and you must not use sudo:
brew tap shopify/shopify
brew trust --formula shopify/shopify/shopify-cli
brew install shopify-cli
shopify version
AI Toolkit plugin (requires the claude command in the terminal; if it doesn't exist, install it with brew install --cask claude-code or add the plugin from the app):
claude plugin install shopify-ai-toolkit@claude-plugins-official
Restart Claude Code after installing the plugin.
2. Connecting a store
Do this once per store from the terminal. You approve it in the browser; Claude doesn't log in for you. The token is stored, and you only need to repeat it if it expires or if more permissions are needed.
Always use the original *.myshopify.com domain, not the public domain.
Translations (reviewing and fixing what Translate & Adapt generates):
shopify store auth --store <store>.myshopify.com --scopes read_products,read_translations,write_translations,read_locales
Product import (shopify-product-import skill): check the list of permissions in its SKILL.md.
Check that the connection works:
shopify store execute --store <store>.myshopify.com --query '{ shop { name } shopLocales { locale primary published } }'
If a query fails with Access denied for <field>, a permission is missing: run store auth again adding it to --scopes (the error says which one).
To switch stores you don't need to disconnect anything: authorize the other store with its domain and tell Claude which one to use.
3. Asking Claude to do the work
In the Code tab, give the store and the rules. Example:
In
<store>.myshopify.com(already authorized with store auth), review theesandpt-PTtranslations. The product title, thecustom.product_namemetafield and collections X, Y, Z must stay in English. If those names appear in other fields, keep them in English only when they work as a product name. First just read and show me a report; don't write anything until I approve it.
The flow it must always follow:
- Read: download products, collections, metafields and their translations.
- Report: what would change, by product and language, with examples.
- Approval: nothing is written to the store without your go-ahead.
- Test: apply the change to a single product and read it back.
- Apply the rest and verify by reading the store again.
4. What we learned about translations (Translate & Adapt)
- Don't delete translations that must stay in English: automatic translation would generate them again. Save the English text as the translation (
translationsRegisterwith the original value). - Each translation is saved with the current
digestof the original text. With an old one it is marked as outdated (outdated). outdatedtranslations mean the original changed after it was translated: they are worth reviewing.- Tell names apart from common words: "Lavender" as a product name stays in English; as a scent note in a description it is translated.
- Sync apps (for example, ERP connectors) can create collections or fields on their own; each resource's history (
events) tells you who created it.
5. Notes
- Claude must never use or ask for an Admin API token: the login is stored by the CLI.
- Theme commands (
shopify theme push/pull) are not run in this kind of work. - Before updating the CLI to a major version (for example, from 4.x to 5.0), check its breaking changes.