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- Create a development store in partners.shopify.com → Stores → Add store
- Development stores are free, support test payments, and are isolated from production
- Grant yourself 'Themes' permission on client stores before running theme commands
- 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.