Skip to content

Releases

5.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 13:30
63da085

Service account tokens

  • If the App Management API doesn't return the app's client secret for your credentials, app execute, the app bulk commands, app webhook trigger and app dev for web apps stop with: This command needs the app's client secret, and the App Management API didn't return one for your credentials. To run them as yourself, unset SHOPIFY_SERVICE_ACCOUNT_TOKEN, log in with shopify auth login, and run the command again. (Also in 5.0.2 and 4.9.6.)

What's Changed

App

  • Run shopify app dev --store on a dev store with SHOPIFY_SERVICE_ACCOUNT_TOKEN.
  • Add --fail-on-unresolved to shopify app security review, so an unresolved check or one with no result fails the gate.
  • Run the deterministic app security check source rules that don't need React Router on any JavaScript or TypeScript app, and add a WEAK_SHOP_VALIDATION rule for shop-domain checks that aren't anchored.
  • Add --sarif to shopify app security review to print the reviewed checks as SARIF 2.1.0 for GitHub code scanning and other scanning tools.
  • Add support for suppressing app security findings.
  • shopify app init --template node and --template remix are deprecated and now show a warning. They will be removed in the next major release. Use --template reactRouter or a GitHub template URL instead.
  • Stop app security review from calling deterministic-only checks passed, say how many checks still need the coding agent and how to run them, and print suggested commands' --path as an absolute path when the app is outside the working directory.
  • Report configuration lines for callback URL, ScriptTag scope, and API version findings in app security check, with distinct keys for insecure URLs.
  • Fix four shopify app security check agent prompts that could skip real issues: MISSING_EMBEDDED_CSP now detects embedded apps from embedded = true, SSRF_REQUEST_FORGERY and SCRIPT_TAG_URL_INJECTION no longer treat an https-only URL as safe, and THEME_EXTENSION_XSS no longer exempts escape in executable contexts or textContent on <script> elements
  • Report the correct source lines for API version and offline token findings after line comments in app security check.
  • Show a clear error instead of ENOENT when app deploy --no-build finds no built web pixel bundle.
  • Show Extension initialized instead of Configuration accepted when config-only extensions start in a new app dev session.
  • Explain the managed-install requirement before deploying Events subscriptions with legacy install flow enabled.
  • app dev no longer crashes when a client of the /extensions WebSocket sends a malformed frame.
  • Stop app dev from exiting when an /extensions WebSocket client sends invalid JSON or an invalid message shape
  • Fix spawn ETXTBSY errors when several CLI processes download and run the same function binary at once
  • Stop app build and app function build from crashing with Unable to update lock within the stale threshold when the function build lock is reported as compromised, for example on FUSE filesystems.
  • Keep app-specific webhook subscriptions with relative URIs when an extension hot reloads during app dev.
  • Added support for optional localizable description to UI extensions dev and deploy

Theme

  • Show an actionable error when Theme Check extends an unknown or missing config
  • Fix 401 errors in shopify theme dev from the localization form and from cart and account requests under a locale or market subfolder, such as /fr/cart/add.js

CLI

  • Require explicit operator permission for custom Theme Checks on theme check, theme language-server, and theme push --strict; ignore consent settings in theme TOML.
  • Stream structured execution and rebuild records from app function replay --json in watch mode.
  • Add JSON lifecycle streaming to app and store GraphiQL commands.
  • Support theme language-server --json and --json-schema while preserving native LSP output and stderr diagnostics.
  • Add finite Liquid console execution with repeated scripts, script files, and JSON output.
  • Keep npm-based auto-upgrades on the newest non-deprecated stable release in the installed major, including maintenance fixes after a newer major is released.
  • Show a daily new-major upgrade notice while automatic updates continue within the current major.
  • Auto-upgrade installs the exact version it checked instead of @shopify/cli@latest, so a stale version cache can no longer upgrade you to a new major version.
  • Retry temporary Windows file locks when updating dev session metadata.
  • Treat HTTP 520 to 524 edge responses as gateway errors, like 502, 503 and 504
  • Keep Homebrew auto-upgrades on the installed formula and refresh its metadata to find same-major fixes.
  • Fix the HTTP 401 that app execute, app bulk execute and other app commands that look up a store get with a service account token that has Dev store management access.
  • Keep every character of table cells, such as in shopify app versions list, when the terminal is narrower than the table. The table keeps one line per row, and the terminal wraps the long lines.
  • Explain theme passwords with characters that can't be sent, and locked or not yet set up stores, instead of reporting an unknown error.
  • Also treat DO_NOT_TRACK=1 as an analytics opt-out, in addition to SHOPIFY_CLI_NO_ANALYTICS=1 and OPT_OUT_INSTRUMENTATION=true.
  • Theme commands and the Admin API version check report an HTTP 5xx as a Shopify-side error with its request ID, and theme commands no longer forget the stored theme on one.
  • Retry theme reads that fail with temporary Admin API errors, and show a friendly error with the request ID if they keep failing

5.0.2

Choose a tag to compare

@github-actions github-actions released this 17 Nov 23:35
b9c7df8

What's Changed

App

  • Improve error messages and guidance for app commands.

4.9.6

Choose a tag to compare

@github-actions github-actions released this 17 Nov 23:35
a3dda66

What's Changed

App

  • Improve error messages and guidance for app commands.

5.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Nov 14:22
daf1820

What's Changed

App

  • Fix Cloudflare tunnel shutdown errors on Windows
  • Prevent intermittent app deploy failures when UI extensions in the same folder build concurrently.
  • Remove [extensions.capabilities.network_access] allowed_sources from theme app extensions; declare network origins with [network_access] allowed_sources in shopify.app.toml instead.

Store

  • store create dev no longer fails with "Unable to determine store creation status."

Theme

  • Fix shopify theme check --json failing when Theme Check reports an offense without a known position
  • Fix links to other sites in theme dev and theme app extension previews

CLI

  • Better error description for revoked or expired service account tokens.

5.0.0

Choose a tag to compare

@isaacroldan isaacroldan released this 27 Oct 14:43
1537f56

Shopify CLI 5.0.0

Shopify CLI 5.0 is your agent-ready Shopify development tool. It now features a standardized JSON output format for nearly all commands, and an app dev command optimized for agentic workflows.

⚠️ Breaking Changes

Review the migration guide for details on these changes and how to adapt existing scripts and workflows.

General

  • Existing JSON output structures have changed on some commands. See the migration guide for details.

App

  • The app logs and app logs sources commands have been removed. Use log output from the app dev command instead for Shopify Functions.

Theme

  • The --poll flag has been removed from theme dev.

New Features

App

  • app dev records sessions, preview status, and JSONL logs to the filesystem, so agents can reuse a running dev session.
  • app dev now supports streaming --json output for direct agent use.
  • Shared namespace metafield warnings added to agentic checks in app security check (SHARED_NAMESPACE_METAFIELD_RENDER).
  • App security checks now account for theme app extension settings types when checking liquid rendering safety (#8935).

Theme

  • When needed, theme commands prompt for identity in the browser for security verification. In CI, with --no-input or with --json, they stop and print a verification link.

General

  • The SHOPIFY_SERVICE_ACCOUNT_TOKEN can be used with Service Accounts to automate app releases and dev store management. The SHOPIFY_APP_AUTOMATION_TOKEN and SHOPIFY_CLI_PARTNERS_TOKEN environment variables are now deprecated.
  • JSON output is now supported in over 90% of Shopify CLI commands.
  • New Shopify loading indicator (#8136).

Patch Changes

App

  • app dev watches fewer files: it skips Cargo target directories, Function build output, .shopify files and editor temp files (#8993).
  • app config link no longer drops Shop scopes such as shop_app:oauth (#8977).
  • Fix migration detection for legacy Checkout and POS UI extensions in App Management apps (#8854).
  • Bundle every UI extension should_render target instead of only the last one (#8862).

Theme

  • theme dev shows the development theme instead of the live theme on stores where every market uses a subfolder (#8880).
  • Theme Access authentication works with all of a store's domains (#8822).
  • theme pull keeps files inside the selected theme directory (#8834).
  • Show the missing-scope message for theme changes, as theme reads already do (#8897).
  • theme check --config <directory> reports a user error instead of crashing with EISDIR (#8988).
  • Fix theme profile failing with "Bad response: 301" when --url has a query string (#8989).

General

  • Retry throttled API requests with exponential backoff, respecting Retry-After (#8956).
  • auth login no longer crashes when the browser can't open; it prints the login link and waits (#8886).
  • Explain which access a token is missing for dev stores instead of printing a raw 401 (#8999).
  • Fail clearly when SHOPIFY_APP_AUTOMATION_TOKEN or SHOPIFY_CLI_PARTNERS_TOKEN is set but empty (#8731).
  • Report process startup failures and signal termination instead of exit code 0.
  • Graceful shutdown and child-process cleanup on Windows (#8926).
  • Security hardening: hide webhook secrets in debug output, partition the GraphQL cache by endpoint and token (#8888), and serialize GraphiQL inline scripts safely (#8887).

4.9.5

Choose a tag to compare

@github-actions github-actions released this 27 Oct 10:15
7d356d6

What's Changed

CLI

  • Upgrade cloudflared to 2026.10.3 #9019

Full Changelog: 4.9.4...4.9.5

4.9.4

Choose a tag to compare

@github-actions github-actions released this 14 Oct 22:26
66b4b89

What's Changed

App

  • Require Git 2.38 or later when shopify app security check uses Git, because its protections against untrusted repositories depend on safe.bareRepository. Scans that don't use Git, such as --no-git-ignore with no Git-dependent secret candidate, still run without it by @jek in #8856
  • Stop shopify app security check from running a command that a scanned repository names through an empty Git remote helper by @jek in #8856
  • Add --print-instructions to shopify app security check to print coding-agent instructions. --yes still works but is deprecated, because it only selected printed instructions by @nickwesselman in #8878
  • Add usage examples to shopify app security check --help for common scan layouts, such as an external backend, a configuration in a subdirectory, exclusions, Git-ignored files, and listing the scan scope by @nickwesselman in #8875
  • State in the shopify app security check, record, and review help that each command reports the number of findings, but not finding details, to Shopify as usage telemetry by @nickwesselman in #8882

CLI

  • Fix the check that stops the CLI from running a program found in the working directory on Windows, which covered only the CLI's own current directory by @jek in #8856

Full Changelog: 4.9.3...4.9.4

4.9.3

Choose a tag to compare

@github-actions github-actions released this 09 Oct 21:07
c6556b6

What's Changed

App

  • Skip lockfiles in every shopify app security check scan directory, including --include-dir paths, so large repository-root lockfiles no longer leave the secret check unresolved by @jplhomer in #8825
  • Check Dependabot and Renovate configuration at the app's Git repository root when the app is nested below it by @jplhomer in #8826
  • Detect React Router code in additional directories, such as servers added with --include-dir and web/ directories, so the relevant source checks can run by @jplhomer in #8827
  • Clarify agent-check instructions for React Router authentication, metafield writes, and frame-ancestors CSP policies, including when to report completed checks versus unresolved investigations by @jplhomer in #8830
  • Clarify the --blocking levels and its none default, and when to use --skip-instructions, in shopify app security help by @jplhomer in #8853

Full Changelog: 4.9.2...4.9.3

4.9.2

Choose a tag to compare

@github-actions github-actions released this 09 Oct 10:44
d10e4c7

What's Changed

CLI

Full Changelog: 4.9.1...4.9.2

4.9.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 09:46
11dce5e

What's Changed

CLI

Full Changelog: 4.9.0...4.9.1