The Complete Shopify CLI Development Guide 2026

CodeAtoZ Engineer, CodeAtoZ
9 min read · 1766 words
Share: 𝕏 in
SHOPIFY · DEV SERIES #12

The Complete Shopify CLI Development Guide 2026

Master Shopify CLI development — app scaffolding, local dev tunnel, extension generation, deploy and release workflow for Shopify apps in 2026.

CLI 3current version
Vitebundler
HMRhot reload
Remixdefault template
In this guide
shopify app initshopify app devExtensionsDeployReleaseConfig push

Shopify CLI development is the official workflow for building, testing, and deploying Shopify apps. Shopify CLI 3 handles scaffolding, local dev with a live tunnel, extension generation, and deployment through a single shopify binary. All Shopify CLI development commands unify what used to require separate tools and manual OAuth setup.

Shopify CLI development uses Vite for bundling embedded apps and Remix as the default template for new projects. shopify app dev creates a Cloudflare tunnel automatically and opens a preview in a partner store. Every extension type is generated and previewed through the same Shopify CLI development workflow. Refer to the Shopify CLI documentation for the full command reference.

shopify cli development diagram — app init, dev tunnel, extension generate, deploy and release by CodeAtoZ
Shopify CLI development — app scaffold, local dev tunnel, extension generation, deploy and release workflow by CodeAtoZ
01

Shopify CLI Development: Init and Local Dev

Start Shopify CLI development with npm init @shopify/app@latest. Choose the Remix template, enter your app name, and the CLI scaffolds a complete project with shopify.app.toml, OAuth, session storage, and webhook stubs. Run shopify app dev to start the local server — it registers a Cloudflare tunnel URL to your Partner Dashboard app automatically. Add extensions with shopify app generate extension and they preview in the same Shopify CLI development tunnel session.

BASH · CORE CLI COMMANDS
npm init @shopify/app@latest    # scaffold new Remix app
shopify app dev                 # local dev + auto Cloudflare tunnel
shopify app generate extension  # add extension to existing app
shopify app config push         # sync toml to Partner Dashboard
shopify app deploy              # push extensions to CDN (draft)
shopify app release             # make deployed version live
02

Shopify CLI Development: Deploy and Release

The Shopify CLI development deployment uses two steps: shopify app deploy pushes extensions to Shopify CDN as a draft, and shopify app release makes it live for all merchants. This staged approach enables testing before release. Your app server (Node.js or Remix backend) deploys separately to your hosting provider. The shopify.app.toml is the source of truth — edit OAuth scopes and settings there, then push with shopify app config push. Check the Shopify app deployment docs and CLI commands reference. Our Shopify development team uses Shopify CLI development on every app project.

⚠
TOML is Source of Truth

In Shopify CLI development, shopify.app.toml defines scopes, redirect URLs, webhooks, and extension handles. Always edit via TOML and push with shopify app config push. Editing the Partner Dashboard directly creates configuration drift.

❓

Frequently Asked Questions About Shopify CLI Development

Q

What is Shopify CLI development?

Shopify CLI development is the official workflow for building Shopify apps using the Shopify CLI 3 tool. It covers app scaffolding, OAuth, local dev with a Cloudflare tunnel, extension generation, and deploy and release to Shopify CDN. It is the recommended approach for all Shopify app development in 2026.

Q

How do I start Shopify CLI development for a new app?

Run npm init @shopify/app@latest and choose the Remix template. The CLI creates a complete project with shopify.app.toml, OAuth, session storage, and webhook stubs. Run shopify app dev to start local dev with an automatic Cloudflare tunnel registered to your Partner Dashboard app.

Q

What does shopify app dev do in Shopify CLI development?

shopify app dev starts your app local server, creates a Cloudflare tunnel to expose localhost to Shopify, registers the tunnel URL in Partner Dashboard, and opens an embedded app preview in your partner dev store. All extensions preview together in the same tunnel session. The tunnel URL resets each dev session.

Q

What is the difference between shopify app deploy and release in Shopify CLI development?

shopify app deploy pushes all extensions to Shopify CDN as a new draft version. shopify app release makes that version live for all merchants who have your app installed. The two-step process enables staged rollouts — deploy and test with a subset of stores before releasing to all merchants.

Q

How do I add an extension in Shopify CLI development?

Run shopify app generate extension inside your app directory. The CLI prompts for the type — Checkout UI, Theme App Extension, Admin UI, Web Pixel, Function, or Post-purchase. It scaffolds the directory, a starter component, and shopify.extension.toml. Preview immediately with shopify app dev and deploy with shopify app deploy.

Q

What is shopify.app.toml in Shopify CLI development?

shopify.app.toml is the configuration file for OAuth scopes, redirect URLs, webhook subscriptions, extension handles, and build settings in Shopify CLI development. It is the source of truth — edit here and push with shopify app config push. The CLI generates it on init and uses it to sync your Partner Dashboard app registration.

Need Help with Shopify CLI Development?

Our team builds production Shopify apps using the full CLI workflow — init, extensions, deploy, and App Store submission.

App scaffoldExtension buildsDeploy workflowApp Store
CodeAtoZ
Lead Engineer & Founder, CodeAtoZ

10+ years building Magento 2 and WooCommerce platforms for high-volume e-commerce businesses. Writes about performance engineering, plugin architecture, and scalable commerce systems.

Join the Discussion

Your email address will not be published. Required fields are marked *