Loading...
Loading...
Set up Shopify CLI auth and Admin API access for a store. Workflow: install CLI, authenticate, create custom app, store access token, verify. Use when connecting to a Shopify store, setting up API access, or troubleshooting auth issues with Shopify CLI or Admin API tokens.
npx skill4agent add jezweb/claude-skills shopify-setupshopify versionnpm install -g @shopify/clishopify auth login --store mystore.myshopify.comshopify store infohttps://{store}.myshopify.com/admin/settings/apps/developmentreferences/api-scopes.mdread_productswrite_productsread_contentwrite_contentread_product_listingsread_inventorywrite_inventoryread_fileswrite_files.dev.varsSHOPIFY_STORE=mystore.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxx.dev.vars.gitignoreUse mcp__vault__secret_set with:
name: "shopify-{store-name}-token"
value: the access token
tags: ["shopify", "api"]curl -s https://{store}.myshopify.com/admin/api/2025-01/graphql.json \
-H "Content-Type: application/json" \
-H "X-Shopify-Access-Token: {token}" \
-d '{"query": "{ shop { name primaryDomain { url } } }"}' | jq .shopify.config.json{
"store": "mystore.myshopify.com",
"apiVersion": "2025-01",
"tokenSource": ".dev.vars"
}2025-01unstable| Token | Format | Use |
|---|---|---|
| Admin API access token | | Custom apps — stable, long-lived |
| CLI session token | Short-lived | Shopify CLI commands only |
| Storefront API token | | Public storefront queries |
bulkOperationRunQueryreferences/api-scopes.md