npm / @shopify/cli
@shopify/cli
What changed in @shopify/cli 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
34 breaking10 security3 deprecations39 new APIs and options3 performance19 behavior and defaults80 tooling91 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@shopify/cli 537 changes
Breaking changes 5
Removes this setting from theme app extensions; network origins should instead be declared in shopify.app.toml.
The command has been removed; use log output from app dev instead for Shopify Functions.
The command has been removed; use log output from app dev instead for Shopify Functions.
JSON output structures changed for some commands, and JSON output is now supported in over 90% of Shopify CLI commands.
The --poll flag has been removed.
Security 3
Security checks account for theme app extension settings types when checking Liquid rendering safety.
Adds a shared namespace metafield warning to the agentic checks in app security check.
Webhook secrets are hidden in debug output.
Deprecations 1
This environment variable is deprecated.
New APIs and options 3
Use this setting in shopify.app.toml to declare network origins for theme app extensions.
Supports streaming JSON output for direct agent use.
Can be used with Service Accounts to automate app releases and dev store management.
Behavior and default changes 2
Throttled API requests are retried with exponential backoff while respecting Retry-After.
The cache is partitioned by endpoint and token.
Tooling 5
App commands provide improved error messages and guidance.
Records sessions, preview status, and JSONL logs to the filesystem so agents can reuse a running dev session.
Watches fewer files by skipping Cargo target directories, Function build output, .shopify files, and editor temp files.
Fixes migration detection for legacy Checkout and POS UI extensions in App Management apps.
When identity verification is needed, prompts for identity in the browser; in CI, with --no-input, or with --json, stops and prints a verification link.
Fixes and other changes 18
Fixes shutdown errors on Windows when using a Cloudflare tunnel.
Provides a better error description for revoked or expired service account tokens.
Prevents intermittent deploy failures when UI extensions in the same folder build concurrently.
No longer fails with “Unable to determine store creation status.”
The JSON output no longer fails when Theme Check reports an offense without a known position.
Fixes links to other sites in theme dev and theme app extension previews.
No longer drops Shop scopes such as shop_app:oauth.
When the browser can't open, prints the login link and waits instead of crashing.
Adds graceful shutdown and child-process cleanup on Windows.
Explains which access a token is missing for dev stores instead of printing a raw 401.
Reports process startup failures and signal termination instead of exit code 0.
Fails clearly when this environment variable is set but empty.
Bundles every UI extension should_render target instead of only the last one.
Works with all of a store's domains.
Reports a user error instead of crashing with EISDIR when --config points to a directory.
Shows the development theme instead of the live theme on stores where every market uses a subfolder.
No longer fails with Bad response: 301 when --url has a query string.
Keeps files inside the selected theme directory.
@shopify/cli 4144 changes
Breaking changes 21
Requires Git 2.38 or later when the scan uses Git; scans that do not use Git still run without it.
Moves import commands under a new app import topic.
Interactive prompts are written to stderr by default.
Removes the lax Shopify API key secret check.
Sensitive information is redacted from device authorization debug output.
Store details are rendered as a data table with link footnotes.
The HOSTED_APPS environment variable was removed.
Shopify CLI upgrades itself through the package manager used to install it. Upgrades are skipped in CI, for project-local installs, and for major releases.
Shopify CLI drops support for Node 20.
The deprecated --force flag is removed. Use --allow-updates, or --allow-updates --allow-deletes to allow removals too.
The deprecated --type flag is removed. Use --template instead.
This deprecated command is removed. Use shopify app function schema instead.
The deprecated --force flag is removed. Passing --allow-updates and --allow-deletes skips the confirmation prompt.
This deprecated command is removed. Use shopify app generate extension instead.
The deprecated --shared-secret flag is removed. Use --client-secret instead.
This environment variable is removed. Use SHOPIFY_FLAG_EXTENSION_TEMPLATE instead.
This environment variable is removed from shopify app deploy. Use --allow-updates, or --allow-updates --allow-deletes to allow removals too.
This environment variable is removed from shopify app release.
This environment variable is removed. Use SHOPIFY_FLAG_CLIENT_SECRET instead.
This deprecated command is removed. Use shopify theme dev instead.
The deprecated top-level alias is removed. Use shopify app webhook trigger instead.
Security 6
Stops the command from running a command named by a scanned repository through an empty Git remote helper.
Checks an app's source code for Shopify-specific security issues using deterministic rules and generates checks for a coding agent to investigate.
Stops sending the Bearer token to cart, checkout, and account proxies.
Allows localhost variants and validates the host on requests.
Theme apps use a validated storefront password.
The CLI guards app bundle uploads against oversized bundles and asset paths that resolve outside the app directory.
Deprecations 2
--yesis deprecated because it only selected printed instructions.The deprecated remix template is hidden from help and validation messages, but passing --template remix continues to work for backwards compatibility.
New APIs and options 19
Adds
--print-instructionsto print coding-agent instructions.Adds --no-input to all commands.
Adds a --json-schema flag to commands.
UI extension metafields now allow an optional owner_type.
Allows --config with --client-id on app deploy and dev.
Adds --language to doc fetch.
Adds --unsafe-validation to app dev.
Saves a coding agent's security findings.
Shows the combined security results.
Functions support target-level input query variables.
You can create dev stores from app dev, including through an option in the dev store picker.
Commands for app subscription migrations are added.
Adds flags to avoid prompts when linking an app configuration.
Can target an app configuration by client ID.
Adds the auth-alias flag.
Adds a reconciliation strategy flag to theme dev.
Adds a command to download Markdown documentation from shopify.dev.
Adds the
--standard-events-inspectorflag totheme preview.Run this command with off to disable automatic upgrades.
Performance 1
Improves performance for extension types generation.
Behavior and default changes 10
Errors and events are printed as JSON when using --json.
theme init now defaults to stable Skeleton releases.
The command now shows the organization name and ID.
Store auth session reuse is opt-in per theme command.
Requested extension templates are filtered before flag checks.
Webhook subscription TOML validation allows kafka:// URIs.
Only .myshopify.io is treated as a normalized store FQDN suffix.
Flow action extension runtime URLs can be relative.
The extension-only template is now the default.
Setting OPT_OUT_INSTRUMENTATION=true now opts out of analytics, in addition to SHOPIFY_CLI_NO_ANALYTICS=1.
Tooling 42
Detects React Router code in additional directories, including servers added with --include-dir and web/ directories, enabling relevant source checks.
Adds subscription-migrations commands.
Recovers gracefully when pnpm blocks build scripts during extension generation.
Defines JSON output schemas for some store, app version, organization, version, config, and auth commands.
Adds relative URL patching on contract app extensions.
Allows --config with --client-id on app deploy and dev.
Adds partner channel spec import.
Removes local security results.
Prints the workflow for a coding agent.
The CLI supports the bundle_size_exception capability.
Configuration-only extensions now receive a default dev-session message.
The CLI reports extension compressed bundle size using Brotli.
The CLI adds support for the intercepts target capability.
The dev store creation command is no longer hidden.
The store deletion command is no longer hidden.
The command now shows context in an info banner and each store's plan, and allows filtering by store type.
Profiling is added to app function run.
CLI invocations emit a Claude Code plugin hint.
Verbose output logs the reason a token exchange fails, helping diagnose failures.
UI extension source maps are served during app dev, making them available while developing an app.
Adds non-interactive prompt bypasses for app development.
Makes payments extension capability fields optional.
Introduces store commands, including listing stores and creating a store.
The CLI recognizes hyperlinks in the Ghostty terminal.
Adds a dedicated GraphiQL command for apps.
Adds bulk commands for Shopify stores.
Adds a dedicated GraphiQL command for stores.
Theme commands use store auth sessions.
The theme dev watcher ignores atomic-write temporary files.
JSON schema error messages are improved.
Adds a command for JSON documentation search.
Opens the authentication browser without a keypress prompt.
Validates --port flags using a reusable cli-kit flag.
Adds the
shopify store info --store <domain>command.Improves the error message shown when a theme scope is missing.
Scaffolded projects are moved to their final directory before dependencies are installed.
Optional repository checks now handle missing Git.
App template cleanup handles modern Bun lockfiles so non-Bun projects do not retain stale Bun lockfiles or .gitignore entries.
Dev info shows a Local URL when no App URL is available.
When a client ID does not exist for a Dev Dashboard app, the CLI displays a friendly error instead of a stack trace.
The CLI detects files added while a dev session is running.
For UI extension targets re-exporting ShopifyGlobal, the generated shopify binding is typed as Api & ShopifyGlobal, allowing host-level APIs such as shopify.addEventListener to type-check.
Fixes and other changes 43
Fixes the check that prevents the CLI from running a program found in the working directory on Windows.
Checks for Dependabot and Renovate configuration at the app's Git repository root when the app is nested below it.
Scans skip lockfiles in every directory, including paths passed with --include-dir, preventing large repository-root lockfiles from leaving the secret check unresolved.
Fixes validation of event subscription handles in stable/4.9.
Developer project errors are no longer reported as CLI crashes in build steps.
Retries gateway failures during device authorization.
Resolves store list --organization-id without listing every organization.
Fixes repeated event config diffs when API versions are inherited.
Fixed theme sync for this command.
Fixed theme sync for this command.
Fixed theme sync for this command.
Theme package now covers all theme files.
Theme pull now covers all theme files.
Theme push now covers all theme files.
The command now prompts to generate the localhost certificate instead of aborting.
Reauthentication after a preview store is claimed is fixed.
Invalid store execute variables are now rejected.
Fixed preview store auth recovery.
Device authorization request parameters are encoded.
Shopify Function GraphQL scalar types are fixed.
Fixes recovery from malformed local storage.
Fixes connecting to the wrong store when domains match by substring.
Fixes snippet rendering.
Handles missing theme write access during theme creation.
Fixes a warning when running theme commands in valid theme directories.
Fixes the config link when accessed from extension directories.
The CLI rejects invalid delimiters in store FQDNs.
Recovers when store info is run after a preview store has been claimed.
Fixes deploy when using --no-build.
Fixes handling of absolute env-file paths when pulling app environment variables.
Theme app extension builds respect the user's .theme-check.yml.
Fixes serving theme assets for /cdn/extensions/ requests.
Fixes hot module reloading during theme development.
Preserves the development preview theme across SFR redirects.
Fixes the unhelpful error shown when an extension locale file contains invalid UTF-8.
Shopify CLI follows semantic versioning: new features use minor releases, bug fixes use patch releases, and breaking changes use major releases.
Fixes a Spawn ETXTBSY bug when multiple Functions use trampoline binaries.
Fixes intermittent UI extension build failures when local esbuild and bundle output paths resolve to the same location but differ as strings.
Fixes analytics being dropped when the command is interrupted with Ctrl+C.
Uploads config/settings_schema.json before other theme files, fixing first pushes when blocks or sections reference a color_palette theme setting.
The theme dev proxy now supports SFAPI requests.
Fixes uid being written outside the [[extensions]] block in single-entry array-of-tables TOML files.
Fixes the dev and build commands for web_pixel extensions.
@shopify/cli 398 changes
Breaking changes 8
Removes the --routes flag and confirmation prompt from initialization.
Expected authorization errors now throw descriptive AbortErrors.
Removes the ability to sync Liquid files by checksum.
Removes support for this option; use
--client-idinstead.Uses the handle to set the app version name, falling back to the TOML name.
Removes support for this environment variable; use
SHOPIFY_FLAG_CLIENT_IDinstead.Cloudflare Turnstile is no longer run during local theme development.
The POLARIS_UNIFIED flag is removed.
Security 1
Fixes a possible CORS vulnerability that could let a website read data from the localhost server.
New APIs and options 17
Adds JSON output support.
The --development flag can be used to create a new theme.
Adds a JSON flag for theme previews, including previews via JSON.
Adds the --listing flag to theme dev.
Adds the --listing flag to theme push.
Adds the --listing flag to theme share.
Adds a command to run queries against the Admin API.
Local dev console can now be skipped.
TOML now supports configuring supported features.
ExtensionPayload now includes supportedFeatures.
Adds the
--allow-deleteflag to deploy.Adds the
--allow-updatesflag to deploy.Adds the
--allow-deleteflag to release.Adds the
--allow-updatesflag to release.Webhook subscriptions can now include an optional name field.
Adds a command to display function information.
Adds --allow-live to permit development on live themes without confirmation.
Performance 2
Improves import scanning performance during app dev.
Optimizes asset checksum filtering using a Set lookup.
Behavior and default changes 7
Manifest generation is skipped when the bundle directory matches the local output.
When no TOML files exist, running config link with --client-id uses the default shopify.app.toml without prompting.
Using --reset skips the TOML selection prompt.
Prompts for an alias during login when the email is not found.
Routes are now automatically scaffolded by default when initializing Hydrogen.
Feature flag gating for extension templates has been updated.
--no-release is exclusive from the new --allow flags on app deploy.
Tooling 33
Footer links in app dev render as hyperlinks when the terminal supports them.
The app dev output includes a separate Dev Console link for non-embedded apps.
Extension file sizes are reported during build and dev.
Task progress bars render to stderr to reduce output noise in non-TTY environments.
Adds JSON output support.
Adds a command to validate app configuration.
App initialization can now run non-interactively.
Adds the store auth command.
Adds the store execute command.
The CLI now detects when an app dev session is taken over.
build.typegen_command is now supported for non-JS Shopify Functions.
UI extensions now emit a metafile, allowing developers to analyze their bundles.
theme pull now reports progress more accurately.
Hardcoded links are replaced with methods that surface URLs.
The React Router app template now includes declarative custom data features.
The Dev Console now renders in admin when using shopify app dev.
Adds a command to run queries against the Admin API.
CLI GraphiQL now supports custom headers.
The Dev Server payload now exposes tools and instructions.
The dev session create API call now includes a websocket URL.
Adds a command to automatically convert existing metafields and metaobjects to declarative TOML.
Supports flexible templates when initializing an app.
Adds a slight delay when keypressing shortcut keys to prevent accidental copy-pasting and opening many tabs.
shopify theme init supports the AGENTS.md file.
Types can be re-generated when extensions are rebuilt during dev.
Watches all imported files during app dev, so changes to imported files are detected.
Mocks captcha and api-collect requests in the CLI proxy.
The editor shortcut now navigates to the most recently viewed template.
Adds the ability to notify users when Liquid files are rewritten remotely.
Improves the error message shown when the folder already exists.
Supports development on dev stores with custom domains.
Functions binaries now support the normalize method on JavaScript strings.
Functions binaries now support Windows on ARM CPUs.
Fixes and other changes 30
Fixed the build command.
Theme commands validate that --path points to a directory and show a helpful error suggesting the parent directory when given a file path.
An error handler for the chokidar file watcher prevents unhandled exceptions.
Fixes the incorrect wasmPath value reported by the command.
Re-authentication preserves existing granted scopes.
Fixes a crash when an organization is not found.
Fixes an infinite 401 retry loop when app logs resubscription fails.
Fixes the editor-tracking shortcut for non-page requests.
Fixes missing JSON output when the dev and theme flags are absent.
Fixed an issue with cart rate limiting.
Webhooks with relative URIs now work when running app dev.
theme profile now works when running on Windows WSL.
Fixes 401 Unauthorized errors on cart AJAX endpoints during shopify theme dev.
Fixes the default environments infrastructure so commands that don't require authentication no longer fail.
Fixes hot-reloading for the tag when serving compiled asset scripts with multibyte characters.
The error message shown when a query is empty is no longer confusing.
The --theme-editor-sync option no longer deletes files when a race condition happens.
Theme commands abort when passed an invalid environment instead of falling back to cached store data.
Fixes theme dev shortcut keys so they work when using the
theme-editor-syncflag.Fixed import-extensions by unblocking the Partners API.
Returns an error when run using a Theme Access password.
Fixes zip and brotliCompress functions to handle binary files.
Fixes the CLI crashing on Node 25.
Fixed images not loading in theme app extensions.
Fixed an error loading apps for some commands when metaobjects are present.
Fixes files being constantly synced on Windows when running this command.
Fixes a crash when building with misconfigured ui-extensions.
Ignores duplicated plugins to avoid
multiple tunnel pluginserrors.Automatic token refresh is fixed in some situations to avoid 401 errors.
The session alias is preserved when a token is refreshed.