Skip to content

Allow --config with --client-id on app deploy and dev - #8735

Merged
isaacroldan merged 4 commits into
mainfrom
allow-config-with-client-id-in-deploy
Oct 6, 2026
Merged

isaacroldan merged 4 commits into
mainfrom
allow-config-with-client-id-in-deploy

Conversation

@isaacroldan

@isaacroldan isaacroldan commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

app deploy and app dev reject --config with --client-id, so users must first change the default configuration to use an existing TOML with another app.

WHAT is this pull request doing?

Allow app deploy, app dev, and app dev clean to use the selected TOML with the requested client ID. Keep an explicit client ID through startup, extension imports, and file-watcher reloads. When no client ID is specified, reloads continue to read it from the TOML.

Add tests for flag validation and real TOML loading, including function manifests, target app settings, config edits, and unchanged source client IDs. Refresh the command manifest, README, and Shopify docs.

How to manually test your changes?

shopify app deploy --config prod --client-id <target-client-id> --no-release
shopify app deploy --config prod --client-id <target-client-id>
shopify app dev --config prod --client-id <target-client-id> --store <dev-store>
shopify app dev clean --config prod --client-id <target-client-id> --store <dev-store>

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

Deploy the configuration selected by --config to the app identified by
--client-id, even if another TOML is linked to that client ID. This matches
what already happens with `app config use <name>` followed by
`app deploy --client-id <id>`.

Requested by Isaac Roldan <isaac.roldan@shopify.com>

Co-authored-by: Isaac Roldan <isaac.roldan@shopify.com>
@isaacroldan
isaacroldan requested review from a team as code owners October 2, 2026 08:56
@github-actions github-actions Bot added the Area: @shopify/app @shopify/app package issues label Oct 2, 2026
@isaacroldan isaacroldan changed the title Allow --config with --client-id on app deploy Allow --config with --client-id on app deploy and dev Oct 5, 2026
@isaacroldan

Copy link
Copy Markdown
Contributor Author

/snapit

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm.

Built from aa2cd5c13a62327cd3c3d64a18bbbfe282dafb18. Workflow run.

Test the snapshot by installing your package globally:

pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20261006074230

Caution

After installing, validate the version by running shopify version in your terminal.
If the versions don't match, you might have multiple global instances installed.
Use which shopify to find out which one you are running and uninstall it.

@gonzaloriestra gonzaloriestra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well 👌

@isaacroldan
isaacroldan added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit a76bd8e Oct 6, 2026
31 checks passed
@isaacroldan
isaacroldan deleted the allow-config-with-client-id-in-deploy branch October 6, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants