[Phase 0] Deprecate --force on app deploy and app release#6993
Open
alfonso-noriega wants to merge 6 commits intomainfrom
Open
[Phase 0] Deprecate --force on app deploy and app release#6993alfonso-noriega wants to merge 6 commits intomainfrom
alfonso-noriega wants to merge 6 commits intomainfrom
Conversation
Add a deprecation warning when --force / -f is used on app deploy and app release. The flag will be removed in Shopify CLI 4.0. Users should migrate to --allow-updates (for CI/CD) or --allow-updates --allow-deletes (when removals are also needed). The SHOPIFY_FLAG_FORCE env var is covered by the same check since oclif resolves it into flags.force. Closes shop/issues-develop#22362 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Coverage report
Test suite run success3815 tests passing in 1466 suites. Report generated by 🧪jest coverage report action from 0f7035f |
Replace "Shopify CLI 4.0" with "a future major release" across the deprecation warning, tests, and changeset to avoid leaking roadmap details in the public repository. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dmerand
reviewed
Mar 12, 2026
…pe, refresh oclif manifests - Rename 'does not show deprecation warning when only --allow-deletes is passed' to correctly reflect its args (--allow-updates --allow-deletes) in deploy.test.ts - Add separate test for --allow-deletes alone in deploy.test.ts - Fix duplicate --allow-updates test in release.test.ts (now tests --allow-updates --allow-deletes) - Fix Organization object literal: remove non-existent fields (website, apps, zeroPartyData, appsNext) and add required 'source' field in both test files - Regenerate oclif.manifest.json and README.md via pnpm refresh-manifests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
LoadedAppContextOutput requires a specifications field. Added specifications: [] to the mock in both deploy.test.ts and release.test.ts to fix the type-check CI failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
LoadedAppContextOutput requires a specifications field. Added specifications: [] to the mock in both deploy.test.ts and release.test.ts to fix the type-check CI failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
Adds a deprecation warning when
--force/-fis used onapp deployandapp release. The flag will be removed in Shopify CLI 4.0.renderWarninginrun()immediately after flag parsing on both commands--forceandSHOPIFY_FLAG_FORCE=1env var (oclif resolves env vars intoflags.force)descriptionto note the deprecationpatch)Migration path
shopify app deploy --forceshopify app deploy --allow-updates --allow-deletesshopify app deploy --force(CI, no deletes)shopify app deploy --allow-updatesSHOPIFY_FLAG_FORCE=1SHOPIFY_FLAG_ALLOW_UPDATES=1shopify app release --forceshopify app release --allow-updates --allow-deletesTest plan
pnpm vitest run src/cli/commands/app/deploy.test.ts src/cli/commands/app/release.test.ts— 8/8 pass@shopify/apptest suite — 190 files, 1894 tests, all passTracking
🤖 Generated with Claude Code