Skip to content

Remove deprecated shopify app generate schema command#7524

Open
alfonso-noriega wants to merge 1 commit into04-remove-app-generate-extension-type-flagfrom
05-remove-app-generate-schema-command
Open

Remove deprecated shopify app generate schema command#7524
alfonso-noriega wants to merge 1 commit into04-remove-app-generate-extension-type-flagfrom
05-remove-app-generate-schema-command

Conversation

@alfonso-noriega
Copy link
Copy Markdown
Contributor

@alfonso-noriega alfonso-noriega commented May 11, 2026

WHY are these changes introduced?

The shopify app generate schema command was a hidden alias deprecated in favor of shopify app function schema. Its description has long included the [DEPRECATED, use \app function schema`]` prefix. This PR removes the deprecated command in preparation for the next major release.

Part of the deprecated-flag-removal stack: #7523 ← this PR → #7525.

WHAT is this pull request doing?

  • Deletes packages/app/src/cli/commands/app/generate/schema.ts (the GenerateSchema class).
  • Removes the import and the 'app:generate:schema' entry from packages/app/src/cli/index.ts.
  • Regenerates packages/cli/oclif.manifest.json (the entry is removed from the manifest).
  • The README is unchanged because the command was already hidden.
  • The underlying service (generateSchemaService) and the supported shopify app function schema command are unchanged.

How to test your changes?

  1. Run pnpm shopify app generate schema --help and confirm it now fails with Command app:generate:schema not found.
  2. Run pnpm shopify app function schema --help and confirm the supported command still works.
  3. Run pnpm shopify app function schema inside a function directory and confirm the schema is regenerated as before.

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

Copy link
Copy Markdown
Contributor Author

alfonso-noriega commented May 11, 2026

The `shopify app generate schema` command was a hidden alias deprecated in
favor of `shopify app function schema`. This change removes the command class
and unregisters it from the CLI command map.
@alfonso-noriega alfonso-noriega force-pushed the 05-remove-app-generate-schema-command branch from da300cd to f23fe6c Compare May 11, 2026 12:52
@alfonso-noriega alfonso-noriega force-pushed the 04-remove-app-generate-extension-type-flag branch from 87d0d25 to ad69d29 Compare May 11, 2026 12:52
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Potential Breaking Changes Detected

This PR contains changes that may break the existing contract.

@shopify/dev_experience — this PR contains breaking changes that require coordination for the next major release. This check will remain failed until a member of the team approves the workflow run.

💬 Head to #help-dev-platform to discuss timing and plan the release.

📦 Major Version Changesets

The following changesets request a major version bump:

Changeset Package
remove-app-deploy-force-flag.md '@shopify/app': major
remove-app-generate-extension-type-flag.md '@shopify/app': major
remove-app-generate-schema-command.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 Commands

The following commands were removed from the OCLIF manifest:

  • app:generate:schema

@alfonso-noriega alfonso-noriega temporarily deployed to breaking-change-approval May 11, 2026 12:53 — with GitHub Actions Inactive
@alfonso-noriega alfonso-noriega marked this pull request as ready for review May 11, 2026 15:15
@alfonso-noriega alfonso-noriega requested review from a team as code owners May 11, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/app @shopify/app package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants