Remove deprecated --force flag from shopify app release#7521
Draft
alfonso-noriega wants to merge 1 commit into01-remove-app-deploy-force-flagfrom
Draft
Remove deprecated --force flag from shopify app release#7521alfonso-noriega wants to merge 1 commit into01-remove-app-deploy-force-flagfrom
shopify app release#7521alfonso-noriega wants to merge 1 commit into01-remove-app-deploy-force-flagfrom
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced May 11, 2026
This was referenced May 11, 2026
The --force (-f) flag and SHOPIFY_FLAG_FORCE env var on `shopify app release` were deprecated in favor of --allow-updates / --allow-deletes. This change removes them along with the related deprecation warning and tests. The internal `force` (skip-confirmation-prompt) parameter passed to the release service is now derived as `--allow-updates && --allow-deletes`, preserving the prior semantics: passing both flags skips the prompt.
3ba2c87 to
c36d5c2
Compare
e126ffb to
96281e6
Compare
Contributor
|
| Changeset | Package |
|---|---|
remove-app-deploy-force-flag.md |
'@shopify/app': major |
remove-app-release-force-flag.md |
'@shopify/app': major |
thin-webs-notice.md |
'@shopify/plugin-did-you-mean': major |
thin-webs-notice.md |
'@shopify/plugin-cloudflare': major |
thin-webs-notice.md |
'@shopify/create-app': major |
thin-webs-notice.md |
'@shopify/cli-kit': major |
thin-webs-notice.md |
'@shopify/store': major |
thin-webs-notice.md |
'@shopify/theme': major |
thin-webs-notice.md |
'@shopify/app': major |
thin-webs-notice.md |
'@shopify/cli': major |
thin-webs-notice.md |
'@shopify/e2e': major |
🏳️ Removed Flags
The following flags were removed from existing commands:
| Command | Flag |
|---|---|
app:release |
--force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

WHY are these changes introduced?
The
--force(-f) flag andSHOPIFY_FLAG_FORCEenvironment variable onshopify app releasehave been deprecated for some time (the command currently renders a deprecation warning when they're used). Users have been pointed to--allow-updates/--allow-deletes. This PR removes the deprecated flag and its dead-code paths in preparation for the next major release.Part of the deprecated-flag-removal stack: #7520 ← this PR → #7522.
WHAT is this pull request doing?
--force/-fflag definition and theSHOPIFY_FLAG_FORCEenv binding fromshopify app release.packages/app/src/cli/commands/app/release.test.ts).force(skip-confirmation-prompt) parameter passed to the release service as--allow-updates && --allow-deletes, preserving the prior--forcesemantics: passing both flags skips the prompt.--allow-updatesor--allow-deletesare now the only ways to release in CI.packages/cli/oclif.manifest.json,packages/cli/README.md, anddocs-shopify.dev/commands/interfaces/app-release.interface.ts.How to test your changes?
pnpm shopify app release --version v1.0.0 --forceand confirm it now fails with an unknown-flag error.pnpm shopify app release --helpand confirm-f, --forceis no longer listed.pnpm shopify app release --version v1.0.0 --allow-updates --allow-deletesagainst an app and confirm the prompt is skipped (matching the previous--forcebehavior).pnpm shopify app release --version v1.0.0 --allow-updatesand confirm the prompt still appears for deletes if any, as before.Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add