unstale

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

@unstale/cli on npm

@shopify/cli 537 changes

Breaking changes 5

  • Removes this setting from theme app extensions; network origins should instead be declared in shopify.app.toml.

    5.0.1release notes

  • The command has been removed; use log output from app dev instead for Shopify Functions.

    5.0.0release notes

  • The command has been removed; use log output from app dev instead for Shopify Functions.

    5.0.0release notes

  • JSON output structures changed for some commands, and JSON output is now supported in over 90% of Shopify CLI commands.

    5.0.0release notes

  • The --poll flag has been removed.

    5.0.0release notes

Security 3

  • Security checks account for theme app extension settings types when checking Liquid rendering safety.

    5.0.0release notes

  • Adds a shared namespace metafield warning to the agentic checks in app security check.

    5.0.0release notes

  • Webhook secrets are hidden in debug output.

    5.0.0release notes

Deprecations 1

New APIs and options 3

  • Use this setting in shopify.app.toml to declare network origins for theme app extensions.

    5.0.1release notes

  • Supports streaming JSON output for direct agent use.

    5.0.0release notes

  • Can be used with Service Accounts to automate app releases and dev store management.

    5.0.0release notes

Behavior and default changes 2

  • Throttled API requests are retried with exponential backoff while respecting Retry-After.

    5.0.0release notes

  • The cache is partitioned by endpoint and token.

    5.0.0release notes

Tooling 5

  • App commands provide improved error messages and guidance.

    4.9.6, 5.0.2release notesrelease notes

  • Records sessions, preview status, and JSONL logs to the filesystem so agents can reuse a running dev session.

    5.0.0release notes

  • Watches fewer files by skipping Cargo target directories, Function build output, .shopify files, and editor temp files.

    5.0.0release notes

  • Fixes migration detection for legacy Checkout and POS UI extensions in App Management apps.

    5.0.0release notes

  • 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.

    5.0.0release notes

Fixes and other changes 18

  • Fixes shutdown errors on Windows when using a Cloudflare tunnel.

    5.0.1release notes

  • Provides a better error description for revoked or expired service account tokens.

    5.0.1release notes

  • Prevents intermittent deploy failures when UI extensions in the same folder build concurrently.

    5.0.1release notes

  • No longer fails with “Unable to determine store creation status.”

    5.0.1release notes

  • The JSON output no longer fails when Theme Check reports an offense without a known position.

    5.0.1release notes

  • Fixes links to other sites in theme dev and theme app extension previews.

    5.0.1release notes

  • No longer drops Shop scopes such as shop_app:oauth.

    5.0.0release notes

  • When the browser can't open, prints the login link and waits instead of crashing.

    5.0.0release notes

  • Adds graceful shutdown and child-process cleanup on Windows.

    5.0.0release notes

  • Explains which access a token is missing for dev stores instead of printing a raw 401.

    5.0.0release notes

  • Reports process startup failures and signal termination instead of exit code 0.

    5.0.0release notes

  • Fails clearly when this environment variable is set but empty.

    5.0.0release notes

  • Bundles every UI extension should_render target instead of only the last one.

    5.0.0release notes

  • Works with all of a store's domains.

    5.0.0release notes

  • Reports a user error instead of crashing with EISDIR when --config points to a directory.

    5.0.0release notes

  • Shows the development theme instead of the live theme on stores where every market uses a subfolder.

    5.0.0release notes

  • No longer fails with Bad response: 301 when --url has a query string.

    5.0.0release notes

  • Keeps files inside the selected theme directory.

    5.0.0release notes

@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.

    4.9.4release notes

  • Moves import commands under a new app import topic.

    4.9.0release notes

  • Interactive prompts are written to stderr by default.

    4.9.0release notes

  • Removes the lax Shopify API key secret check.

    4.9.0release notes

  • Sensitive information is redacted from device authorization debug output.

    4.7.0release notes

  • Store details are rendered as a data table with link footnotes.

    4.4.0release notes

  • The HOSTED_APPS environment variable was removed.

    4.1.0release notes

  • 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.

    4.0.0release notes

  • Shopify CLI drops support for Node 20.

    4.0.0release notes

  • The deprecated --force flag is removed. Use --allow-updates, or --allow-updates --allow-deletes to allow removals too.

    4.0.0release notes

  • The deprecated --type flag is removed. Use --template instead.

    4.0.0release notes

  • This deprecated command is removed. Use shopify app function schema instead.

    4.0.0release notes

  • The deprecated --force flag is removed. Passing --allow-updates and --allow-deletes skips the confirmation prompt.

    4.0.0release notes

  • This deprecated command is removed. Use shopify app generate extension instead.

    4.0.0release notes

  • The deprecated --shared-secret flag is removed. Use --client-secret instead.

    4.0.0release notes

  • This environment variable is removed. Use SHOPIFY_FLAG_EXTENSION_TEMPLATE instead.

    4.0.0release notes

  • This environment variable is removed from shopify app deploy. Use --allow-updates, or --allow-updates --allow-deletes to allow removals too.

    4.0.0release notes

  • This environment variable is removed from shopify app release.

    4.0.0release notes

  • This environment variable is removed. Use SHOPIFY_FLAG_CLIENT_SECRET instead.

    4.0.0release notes

  • This deprecated command is removed. Use shopify theme dev instead.

    4.0.0release notes

  • The deprecated top-level alias is removed. Use shopify app webhook trigger instead.

    4.0.0release notes

Security 6

  • Stops the command from running a command named by a scanned repository through an empty Git remote helper.

    4.9.4release notes

  • Checks an app's source code for Shopify-specific security issues using deterministic rules and generates checks for a coding agent to investigate.

    4.9.0release notes

  • Stops sending the Bearer token to cart, checkout, and account proxies.

    4.6.0release notes

  • Allows localhost variants and validates the host on requests.

    4.2.0release notes

  • Theme apps use a validated storefront password.

    4.2.0release notes

  • The CLI guards app bundle uploads against oversized bundles and asset paths that resolve outside the app directory.

    4.0.0release notes

Deprecations 2

  • --yes is deprecated because it only selected printed instructions.

    4.9.4release notes

  • The deprecated remix template is hidden from help and validation messages, but passing --template remix continues to work for backwards compatibility.

    4.0.0release notes

New APIs and options 19

  • Adds --print-instructions to print coding-agent instructions.

    4.9.4release notes

  • Adds --no-input to all commands.

    4.9.0release notes

  • Adds a --json-schema flag to commands.

    4.9.0release notes

  • UI extension metafields now allow an optional owner_type.

    4.9.0release notes

  • Allows --config with --client-id on app deploy and dev.

    4.9.0release notes

  • Adds --language to doc fetch.

    4.9.0release notes

  • Adds --unsafe-validation to app dev.

    4.9.0release notes

  • Saves a coding agent's security findings.

    4.9.0release notes

  • Shows the combined security results.

    4.9.0release notes

  • Functions support target-level input query variables.

    4.9.0release notes

  • You can create dev stores from app dev, including through an option in the dev store picker.

    4.8.0release notes

  • Commands for app subscription migrations are added.

    4.8.0release notes

  • Adds flags to avoid prompts when linking an app configuration.

    4.6.0release notes

  • Can target an app configuration by client ID.

    4.6.0release notes

  • Adds the auth-alias flag.

    4.6.0release notes

  • Adds a reconciliation strategy flag to theme dev.

    4.6.0release notes

  • Adds a command to download Markdown documentation from shopify.dev.

    4.3.0release notes

  • Adds the --standard-events-inspector flag to theme preview.

    4.2.0release notes

  • Run this command with off to disable automatic upgrades.

    4.0.0release notes

Performance 1

  • Improves performance for extension types generation.

    4.6.0release notes

Behavior and default changes 10

  • Errors and events are printed as JSON when using --json.

    4.9.0release notes

  • theme init now defaults to stable Skeleton releases.

    4.8.5release notes

  • The command now shows the organization name and ID.

    4.8.0release notes

  • Store auth session reuse is opt-in per theme command.

    4.6.0release notes

  • Requested extension templates are filtered before flag checks.

    4.3.0release notes

  • Webhook subscription TOML validation allows kafka:// URIs.

    4.3.0release notes

  • Only .myshopify.io is treated as a normalized store FQDN suffix.

    4.3.0release notes

  • Flow action extension runtime URLs can be relative.

    4.2.0release notes

  • The extension-only template is now the default.

    4.1.0release notes

  • Setting OPT_OUT_INSTRUMENTATION=true now opts out of analytics, in addition to SHOPIFY_CLI_NO_ANALYTICS=1.

    4.0.0release notes

Tooling 42

  • Detects React Router code in additional directories, including servers added with --include-dir and web/ directories, enabling relevant source checks.

    4.9.3release notes

  • Adds subscription-migrations commands.

    4.9.0release notes

  • Recovers gracefully when pnpm blocks build scripts during extension generation.

    4.9.0release notes

  • Defines JSON output schemas for some store, app version, organization, version, config, and auth commands.

    4.9.0release notes

  • Adds relative URL patching on contract app extensions.

    4.9.0release notes

  • Allows --config with --client-id on app deploy and dev.

    4.9.0release notes

  • Adds partner channel spec import.

    4.9.0release notes

  • Removes local security results.

    4.9.0release notes

  • Prints the workflow for a coding agent.

    4.9.0release notes

  • The CLI supports the bundle_size_exception capability.

    4.8.0release notes

  • Configuration-only extensions now receive a default dev-session message.

    4.8.0release notes

  • The CLI reports extension compressed bundle size using Brotli.

    4.8.0release notes

  • The CLI adds support for the intercepts target capability.

    4.8.0release notes

  • The dev store creation command is no longer hidden.

    4.8.0release notes

  • The store deletion command is no longer hidden.

    4.8.0release notes

  • The command now shows context in an info banner and each store's plan, and allows filtering by store type.

    4.8.0release notes

  • Profiling is added to app function run.

    4.7.0release notes

  • CLI invocations emit a Claude Code plugin hint.

    4.7.0release notes

  • Verbose output logs the reason a token exchange fails, helping diagnose failures.

    4.7.0release notes

  • UI extension source maps are served during app dev, making them available while developing an app.

    4.6.1release notesrelease notes

  • Adds non-interactive prompt bypasses for app development.

    4.6.0release notes

  • Makes payments extension capability fields optional.

    4.6.0release notes

  • Introduces store commands, including listing stores and creating a store.

    4.5.0release notes

  • The CLI recognizes hyperlinks in the Ghostty terminal.

    4.4.0release notes

  • Adds a dedicated GraphiQL command for apps.

    4.4.0release notes

  • Adds bulk commands for Shopify stores.

    4.4.0release notes

  • Adds a dedicated GraphiQL command for stores.

    4.4.0release notes

  • Theme commands use store auth sessions.

    4.4.0release notes

  • The theme dev watcher ignores atomic-write temporary files.

    4.4.0release notes

  • JSON schema error messages are improved.

    4.3.0release notes

  • Adds a command for JSON documentation search.

    4.3.0release notes

  • Opens the authentication browser without a keypress prompt.

    4.2.0release notes

  • Validates --port flags using a reusable cli-kit flag.

    4.2.0release notes

  • Adds the shopify store info --store <domain> command.

    4.2.0release notes

  • Improves the error message shown when a theme scope is missing.

    4.2.0release notes

  • Scaffolded projects are moved to their final directory before dependencies are installed.

    4.1.0release notes

  • Optional repository checks now handle missing Git.

    4.1.0release notes

  • App template cleanup handles modern Bun lockfiles so non-Bun projects do not retain stale Bun lockfiles or .gitignore entries.

    4.0.0release notes

  • Dev info shows a Local URL when no App URL is available.

    4.0.0release notes

  • When a client ID does not exist for a Dev Dashboard app, the CLI displays a friendly error instead of a stack trace.

    4.0.0release notes

  • The CLI detects files added while a dev session is running.

    4.0.0release notes

  • 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.

    4.0.0release notes

Fixes and other changes 43

  • Fixes the check that prevents the CLI from running a program found in the working directory on Windows.

    4.9.4release notes

  • Checks for Dependabot and Renovate configuration at the app's Git repository root when the app is nested below it.

    4.9.3release notes

  • Scans skip lockfiles in every directory, including paths passed with --include-dir, preventing large repository-root lockfiles from leaving the secret check unresolved.

    4.9.3release notes

  • Fixes validation of event subscription handles in stable/4.9.

    4.9.1release notes

  • Developer project errors are no longer reported as CLI crashes in build steps.

    4.9.0release notes

  • Retries gateway failures during device authorization.

    4.9.0release notes

  • Resolves store list --organization-id without listing every organization.

    4.9.0release notes

  • Fixes repeated event config diffs when API versions are inherited.

    4.8.3release notesrelease notes

  • Fixed theme sync for this command.

    4.8.2release notes

  • Fixed theme sync for this command.

    4.8.2release notes

  • Fixed theme sync for this command.

    4.8.2release notes

  • Theme package now covers all theme files.

    4.8.1release notes

  • Theme pull now covers all theme files.

    4.8.1release notes

  • Theme push now covers all theme files.

    4.8.1release notes

  • The command now prompts to generate the localhost certificate instead of aborting.

    4.8.0release notes

  • Reauthentication after a preview store is claimed is fixed.

    4.8.0release notes

  • Invalid store execute variables are now rejected.

    4.8.0release notes

  • Fixed preview store auth recovery.

    4.7.1release notes

  • Device authorization request parameters are encoded.

    4.7.0release notes

  • Shopify Function GraphQL scalar types are fixed.

    4.7.0release notes

  • Fixes recovery from malformed local storage.

    4.6.0release notes

  • Fixes connecting to the wrong store when domains match by substring.

    4.6.0release notes

  • Fixes snippet rendering.

    4.6.0release notes

  • Handles missing theme write access during theme creation.

    4.6.0release notes

  • Fixes a warning when running theme commands in valid theme directories.

    4.5.2release notes

  • Fixes the config link when accessed from extension directories.

    4.4.0release notes

  • The CLI rejects invalid delimiters in store FQDNs.

    4.4.0release notes

  • Recovers when store info is run after a preview store has been claimed.

    4.4.0release notes

  • Fixes deploy when using --no-build.

    4.3.0release notes

  • Fixes handling of absolute env-file paths when pulling app environment variables.

    4.2.0release notes

  • Theme app extension builds respect the user's .theme-check.yml.

    4.2.0release notes

  • Fixes serving theme assets for /cdn/extensions/ requests.

    4.2.0release notes

  • Fixes hot module reloading during theme development.

    4.2.0release notes

  • Preserves the development preview theme across SFR redirects.

    4.2.0release notes

  • Fixes the unhelpful error shown when an extension locale file contains invalid UTF-8.

    4.0.0release notes

  • Shopify CLI follows semantic versioning: new features use minor releases, bug fixes use patch releases, and breaking changes use major releases.

    4.0.0release notes

  • Fixes a Spawn ETXTBSY bug when multiple Functions use trampoline binaries.

    4.0.0release notes

  • Fixes intermittent UI extension build failures when local esbuild and bundle output paths resolve to the same location but differ as strings.

    4.0.0release notes

  • Fixes analytics being dropped when the command is interrupted with Ctrl+C.

    4.0.0release notes

  • Uploads config/settings_schema.json before other theme files, fixing first pushes when blocks or sections reference a color_palette theme setting.

    4.0.0release notes

  • The theme dev proxy now supports SFAPI requests.

    4.0.0release notes

  • Fixes uid being written outside the [[extensions]] block in single-entry array-of-tables TOML files.

    4.0.0release notes

  • Fixes the dev and build commands for web_pixel extensions.

    3.94.3, 4.0.0release notesrelease notes

@shopify/cli 398 changes

Breaking changes 8

  • Removes the --routes flag and confirmation prompt from initialization.

    3.91.1release notes

  • Expected authorization errors now throw descriptive AbortErrors.

    3.90.0release notes

  • Removes the ability to sync Liquid files by checksum.

    3.88.0release notes

  • Removes support for this option; use --client-id instead.

    3.87.0release notes

  • Uses the handle to set the app version name, falling back to the TOML name.

    3.87.0release notes

  • Removes support for this environment variable; use SHOPIFY_FLAG_CLIENT_ID instead.

    3.87.0release notes

  • Cloudflare Turnstile is no longer run during local theme development.

    3.86.1release notes

  • The POLARIS_UNIFIED flag is removed.

    3.86.0release notes

Security 1

  • Fixes a possible CORS vulnerability that could let a website read data from the localhost server.

    3.88.0release notes

New APIs and options 17

  • Adds JSON output support.

    3.93.1release notes

  • The --development flag can be used to create a new theme.

    3.93.0release notes

  • Adds a JSON flag for theme previews, including previews via JSON.

    3.93.0release notes

  • Adds the --listing flag to theme dev.

    3.91.0release notes

  • Adds the --listing flag to theme push.

    3.91.0release notes

  • Adds the --listing flag to theme share.

    3.91.0release notes

  • Adds a command to run queries against the Admin API.

    3.90.1release notes

  • Local dev console can now be skipped.

    3.90.0release notes

  • TOML now supports configuring supported features.

    3.90.0release notes

  • ExtensionPayload now includes supportedFeatures.

    3.90.0release notes

  • Adds the --allow-delete flag to deploy.

    3.89.0release notes

  • Adds the --allow-updates flag to deploy.

    3.89.0release notes

  • Adds the --allow-delete flag to release.

    3.89.0release notes

  • Adds the --allow-updates flag to release.

    3.89.0release notes

  • Webhook subscriptions can now include an optional name field.

    3.89.0release notes

  • Adds a command to display function information.

    3.87.0release notes

  • Adds --allow-live to permit development on live themes without confirmation.

    3.86.0release notes

Performance 2

  • Improves import scanning performance during app dev.

    3.93.0release notes

  • Optimizes asset checksum filtering using a Set lookup.

    3.93.0release notes

Behavior and default changes 7

  • Manifest generation is skipped when the bundle directory matches the local output.

    3.94.3release notes

  • When no TOML files exist, running config link with --client-id uses the default shopify.app.toml without prompting.

    3.94.0release notes

  • Using --reset skips the TOML selection prompt.

    3.94.0release notes

  • Prompts for an alias during login when the email is not found.

    3.93.0release notes

  • Routes are now automatically scaffolded by default when initializing Hydrogen.

    3.91.1release notes

  • Feature flag gating for extension templates has been updated.

    3.90.0release notes

  • --no-release is exclusive from the new --allow flags on app deploy.

    3.90.0release notes

Tooling 33

  • Footer links in app dev render as hyperlinks when the terminal supports them.

    3.94.0release notes

  • The app dev output includes a separate Dev Console link for non-embedded apps.

    3.94.0release notes

  • Extension file sizes are reported during build and dev.

    3.94.0release notes

  • Task progress bars render to stderr to reduce output noise in non-TTY environments.

    3.94.0release notes

  • Adds JSON output support.

    3.93.1release notes

  • Adds a command to validate app configuration.

    3.93.0release notes

  • App initialization can now run non-interactively.

    3.93.0release notes

  • Adds the store auth command.

    3.93.0release notes

  • Adds the store execute command.

    3.93.0release notes

  • The CLI now detects when an app dev session is taken over.

    3.92.0release notes

  • build.typegen_command is now supported for non-JS Shopify Functions.

    3.92.0release notes

  • UI extensions now emit a metafile, allowing developers to analyze their bundles.

    3.92.0release notes

  • theme pull now reports progress more accurately.

    3.92.0release notes

  • Hardcoded links are replaced with methods that surface URLs.

    3.92.0release notes

  • The React Router app template now includes declarative custom data features.

    3.91.0release notes

  • The Dev Console now renders in admin when using shopify app dev.

    3.91.0release notes

  • Adds a command to run queries against the Admin API.

    3.90.1release notes

  • CLI GraphiQL now supports custom headers.

    3.90.0release notes

  • The Dev Server payload now exposes tools and instructions.

    3.90.0release notes

  • The dev session create API call now includes a websocket URL.

    3.90.0release notes

  • Adds a command to automatically convert existing metafields and metaobjects to declarative TOML.

    3.89.0release notes

  • Supports flexible templates when initializing an app.

    3.89.0release notes

  • Adds a slight delay when keypressing shortcut keys to prevent accidental copy-pasting and opening many tabs.

    3.89.0release notes

  • shopify theme init supports the AGENTS.md file.

    3.88.0release notes

  • Types can be re-generated when extensions are rebuilt during dev.

    3.88.0release notes

  • Watches all imported files during app dev, so changes to imported files are detected.

    3.87.0release notes

  • Mocks captcha and api-collect requests in the CLI proxy.

    3.87.0release notes

  • The editor shortcut now navigates to the most recently viewed template.

    3.87.0release notes

  • Adds the ability to notify users when Liquid files are rewritten remotely.

    3.87.0release notes

  • Improves the error message shown when the folder already exists.

    3.87.0release notes

  • Supports development on dev stores with custom domains.

    3.86.0release notes

  • Functions binaries now support the normalize method on JavaScript strings.

    3.86.0release notes

  • Functions binaries now support Windows on ARM CPUs.

    3.86.0release notes

Fixes and other changes 30

  • Fixed the build command.

    3.94.3release notes

  • Theme commands validate that --path points to a directory and show a helpful error suggesting the parent directory when given a file path.

    3.94.0release notes

  • An error handler for the chokidar file watcher prevents unhandled exceptions.

    3.94.0release notes

  • Fixes the incorrect wasmPath value reported by the command.

    3.93.2release notes

  • Re-authentication preserves existing granted scopes.

    3.93.1release notes

  • Fixes a crash when an organization is not found.

    3.93.0release notes

  • Fixes an infinite 401 retry loop when app logs resubscription fails.

    3.93.0release notes

  • Fixes the editor-tracking shortcut for non-page requests.

    3.93.0release notes

  • Fixes missing JSON output when the dev and theme flags are absent.

    3.93.0release notes

  • Fixed an issue with cart rate limiting.

    3.92.1release notes

  • Webhooks with relative URIs now work when running app dev.

    3.92.0release notes

  • theme profile now works when running on Windows WSL.

    3.92.0release notes

  • Fixes 401 Unauthorized errors on cart AJAX endpoints during shopify theme dev.

    3.91.0release notes

  • Fixes the default environments infrastructure so commands that don't require authentication no longer fail.

    3.91.0release notes

  • Fixes hot-reloading for the tag when serving compiled asset scripts with multibyte characters.

    3.91.0release notes

  • The error message shown when a query is empty is no longer confusing.

    3.90.0release notes

  • The --theme-editor-sync option no longer deletes files when a race condition happens.

    3.90.0release notes

  • Theme commands abort when passed an invalid environment instead of falling back to cached store data.

    3.89.0release notes

  • Fixes theme dev shortcut keys so they work when using the theme-editor-sync flag.

    3.89.0release notes

  • Fixed import-extensions by unblocking the Partners API.

    3.88.1release notes

  • Returns an error when run using a Theme Access password.

    3.88.0release notes

  • Fixes zip and brotliCompress functions to handle binary files.

    3.88.0release notes

  • Fixes the CLI crashing on Node 25.

    3.87.4release notes

  • Fixed images not loading in theme app extensions.

    3.87.3release notes

  • Fixed an error loading apps for some commands when metaobjects are present.

    3.87.2release notes

  • Fixes files being constantly synced on Windows when running this command.

    3.87.1release notes

  • Fixes a crash when building with misconfigured ui-extensions.

    3.87.0release notes

  • Ignores duplicated plugins to avoid multiple tunnel plugins errors.

    3.87.0release notes

  • Automatic token refresh is fixed in some situations to avoid 401 errors.

    3.86.0release notes

  • The session alias is preserved when a token is refreshed.

    3.86.0release notes