Liquid Tutorial

CLI Authentication

Source: ShopifyDevs

Connecting CLI to Your Store

shopify auth login opens a browser OAuth window. You log in with your Partner account or store staff credentials. CLI stores a session token locally so subsequent commands do not require re-login until expiry.

BASH
# Interactive login — pick store from list
shopify auth login

# Target a specific store directly
shopify auth login --store your-dev-store.myshopify.com

# Check current session
shopify whoami

# Clear credentials (switch accounts)
shopify auth logout
  1. Create a development store in partners.shopify.com → Stores → Add store
  2. Development stores are free, support test payments, and are isolated from production
  3. Grant yourself 'Themes' permission on client stores before running theme commands
  4. Partner staff use Organizations — ensure you are in the correct Partner team
Tip: For CI/CD pipelines, use Theme Access passwords or the Shopify Admin API with a custom app — not interactive auth login.