CI/CD patterns
Non-interactive Shopify CLI deployment patterns for apps and themes.
Shopify’s docs describe CI/CD usage for app and theme workflows. The exact secrets and tokens depend on your Shopify project type, but the operational pattern is consistent.
Apps
Use Shopify CLI in CI when your app configuration and extensions should deploy regularly.
pnpm install
shopify app config validate
shopify app deploy --forcePrefer validating configuration before deploy. Keep app-specific credentials in your CI secret store.
Themes
Themes can be pushed, pulled, packaged, and published from CI.
shopify theme check
shopify theme push --store your-store.myshopify.com --theme THEME_ID
shopify theme publish --store your-store.myshopify.com --theme THEME_IDFor automation, use Theme Access passwords or custom app access tokens with the required theme scopes.
Diagnostics
shopify commands --json --no-truncate
shopify version
shopify app logs --source backend
shopify theme info