Repository navigation
Releases
Releases · Shopify/cli
5.1.0
Service account tokens
- If the App Management API doesn't return the app's client secret for your credentials,
app execute, theapp bulkcommands,app webhook triggerandapp devfor 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, unsetSHOPIFY_SERVICE_ACCOUNT_TOKEN, log in withshopify auth login, and run the command again. (Also in 5.0.2 and 4.9.6.)
What's Changed
App
- Run
shopify app dev --storeon a dev store withSHOPIFY_SERVICE_ACCOUNT_TOKEN. - Add
--fail-on-unresolvedtoshopify app security review, so an unresolved check or one with no result fails the gate. - Run the deterministic
app security checksource rules that don't need React Router on any JavaScript or TypeScript app, and add aWEAK_SHOP_VALIDATIONrule for shop-domain checks that aren't anchored. - Add
--sariftoshopify app security reviewto 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 nodeand--template remixare deprecated and now show a warning. They will be removed in the next major release. Use--template reactRouteror a GitHub template URL instead.- Stop
app security reviewfrom calling deterministic-only checks passed, say how many checks still need the coding agent and how to run them, and print suggested commands'--pathas 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 checkagent prompts that could skip real issues:MISSING_EMBEDDED_CSPnow detects embedded apps fromembedded = true,SSRF_REQUEST_FORGERYandSCRIPT_TAG_URL_INJECTIONno longer treat an https-only URL as safe, andTHEME_EXTENSION_XSSno longer exemptsescapein executable contexts ortextContenton<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-buildfinds no built web pixel bundle. - Show
Extension initializedinstead ofConfiguration acceptedwhen config-only extensions start in a newapp devsession. - Explain the managed-install requirement before deploying Events subscriptions with legacy install flow enabled.
app devno longer crashes when a client of the/extensionsWebSocket sends a malformed frame.- Stop
app devfrom exiting when an/extensionsWebSocket client sends invalid JSON or an invalid message shape - Fix
spawn ETXTBSYerrors when several CLI processes download and run the same function binary at once - Stop
app buildandapp function buildfrom crashing withUnable to update lock within the stale thresholdwhen 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 devfrom 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, andtheme 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 --jsonand--json-schemawhile 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 executeand 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=1as an analytics opt-out, in addition toSHOPIFY_CLI_NO_ANALYTICS=1andOPT_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
What's Changed
App
- Improve error messages and guidance for app commands.
4.9.6
What's Changed
App
- Improve error messages and guidance for app commands.
5.0.1
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_sourcesfrom theme app extensions; declare network origins with[network_access] allowed_sourcesinshopify.app.tomlinstead.
Store
store create devno longer fails with "Unable to determine store creation status."
Theme
- Fix
shopify theme check --jsonfailing when Theme Check reports an offense without a known position - Fix links to other sites in
theme devand theme app extension previews
CLI
- Better error description for revoked or expired service account tokens.
5.0.0
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 logsandapp logs sourcescommands have been removed. Use log output from theapp devcommand instead for Shopify Functions.
Theme
- The
--pollflag has been removed fromtheme dev.
New Features
App
app devrecords sessions, preview status, and JSONL logs to the filesystem, so agents can reuse a runningdevsession.app devnow supports streaming--jsonoutput 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-inputor with--json, they stop and print a verification link.
General
- The
SHOPIFY_SERVICE_ACCOUNT_TOKENcan be used with Service Accounts to automate app releases and dev store management. TheSHOPIFY_APP_AUTOMATION_TOKENandSHOPIFY_CLI_PARTNERS_TOKENenvironment 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 devwatches fewer files: it skips Cargotargetdirectories, Function build output,.shopifyfiles and editor temp files (#8993).app config linkno longer drops Shop scopes such asshop_app:oauth(#8977).- Fix migration detection for legacy Checkout and POS UI extensions in App Management apps (#8854).
- Bundle every UI extension
should_rendertarget instead of only the last one (#8862).
Theme
theme devshows 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 pullkeeps 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 profilefailing with "Bad response: 301" when--urlhas a query string (#8989).
General
- Retry throttled API requests with exponential backoff, respecting
Retry-After(#8956). auth loginno 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_TOKENorSHOPIFY_CLI_PARTNERS_TOKENis 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
4.9.4
What's Changed
App
- Require Git 2.38 or later when
shopify app security checkuses Git, because its protections against untrusted repositories depend onsafe.bareRepository. Scans that don't use Git, such as--no-git-ignorewith no Git-dependent secret candidate, still run without it by @jek in #8856 - Stop
shopify app security checkfrom running a command that a scanned repository names through an empty Git remote helper by @jek in #8856 - Add
--print-instructionstoshopify app security checkto print coding-agent instructions.--yesstill works but is deprecated, because it only selected printed instructions by @nickwesselman in #8878 - Add usage examples to
shopify app security check --helpfor 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, andreviewhelp 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
What's Changed
App
- Skip lockfiles in every
shopify app security checkscan directory, including--include-dirpaths, so large repository-root lockfiles no longer leave the secret checkunresolvedby @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-dirandweb/directories, so the relevant source checks can run by @jplhomer in #8827 - Clarify agent-check instructions for React Router authentication, metafield writes, and
frame-ancestorsCSP policies, including when to report completed checks versus unresolved investigations by @jplhomer in #8830 - Clarify the
--blockinglevels and itsnonedefault, and when to use--skip-instructions, inshopify app securityhelp by @jplhomer in #8853
Full Changelog: 4.9.2...4.9.3
4.9.2
4.9.1
What's Changed
CLI
- Fix event subscription handle validation in stable/4.9 by @isaacroldan in #8849
Full Changelog: 4.9.0...4.9.1