Remove deprecated --type flag from shopify app generate extension#7523
Merged
Merged
Conversation
This was referenced May 11, 2026
Contributor
Author
This was referenced May 11, 2026
The --type (-t) flag and SHOPIFY_FLAG_EXTENSION_TYPE env var on `shopify app generate extension` were deprecated in favor of --template (SHOPIFY_FLAG_EXTENSION_TEMPLATE). This change removes them along with the deprecation warning. The -t short flag now maps to --template, which was previously shadowed by the --type registration.
87d0d25 to
ad69d29
Compare
2529e74 to
38ce793
Compare
Contributor
|
| Changeset | Package |
|---|---|
remove-app-deploy-force-flag.md |
'@shopify/app': major |
remove-app-generate-extension-type-flag.md |
'@shopify/app': major |
remove-app-release-force-flag.md |
'@shopify/app': major |
remove-webhook-trigger-shared-secret-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:generate:extension |
--type |
🔧 Removed Environment Variables
The following env vars are no longer referenced in command flags:
| Env Var | Previously Used By |
|---|---|
SHOPIFY_FLAG_EXTENSION_TYPE |
app:generate:extension --type |
isaacroldan
approved these changes
May 11, 2026
Base automatically changed from
03-remove-webhook-trigger-shared-secret-flag
to
main
May 12, 2026 15:17
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
--type(-t) flag andSHOPIFY_FLAG_EXTENSION_TYPEenvironment variable onshopify app generate extensionhave been deprecated for some time in favor of--template(SHOPIFY_FLAG_EXTENSION_TEMPLATE). The command currently renders a deprecation warning and exits with code 2 when--typeis used. This PR removes the deprecated flag in preparation for the next major release.Part of the deprecated-flag-removal stack: #7522 ← this PR → #7524.
WHAT is this pull request doing?
--type/-tflag definition and theSHOPIFY_FLAG_EXTENSION_TYPEenv binding fromshopify app generate extension.process.exit(2)it triggered.-tshort alias now maps to--template. Previously both flags declaredchar: 't'and--type's registration shadowed--template, so-teffectively meant--type. After this change,-tconsistently maps to--template.packages/cli/oclif.manifest.json,packages/cli/README.md, anddocs-shopify.dev/commands/interfaces/app-generate-extension.interface.ts.How to test your changes?
pnpm shopify app generate extension --type ui-extensionand confirm it now fails with an unknown-flag error.pnpm shopify app generate extension --helpand confirm--typeis no longer listed.pnpm shopify app generate extension --template <template>and confirm it works.pnpm shopify app generate extension -t <template>and confirm-tnow maps to--template(it would previously have mapped to--typeand shown the deprecation warning).Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add