Skip to content

feat(cli): add --app-target and --hosted-test-target to sentry wizard - #2574

Merged
BYK merged 2 commits into
mainfrom
feat/cli-wizard-apple-target-flags
Nov 27, 2026
Merged

BYK merged 2 commits into
mainfrom
feat/cli-wizard-apple-target-flags

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Follows up #2544, which left out the upstream Apple flags.

When stdin isn't a terminal, Apple Snapshots picks the only app target and hosted XCTest target, or stops with the list. A project with several targets had no way to get through a non-interactive run. This brings back the upstream @sentry/wizard recovery path: --app-target and --hosted-test-target name the targets instead of picking them, and the non-interactive errors now point at those flags.

  • Both flags apply to appleSnapshots only, and their help text says so. A name that doesn't exist fails with the available targets, the same as upstream.
  • --non-interactive is not added: sentry wizard already detects a missing terminal (isatty(0)).
  • --xcode-project-dir is not added: the wizard uses the current directory, so cd there first.
  • The migration table in the sentry wizard docs now lists all four upstream flags.

The deprecated @sentry/wizard shim in packages/wizard now passes --app-target and --hosted-test-target on to sentry wizard with their values, instead of dropping them with a notice.

via @BYK.

--

View Session [Sentry]

Without a terminal, Apple Snapshots picks the only app and hosted XCTest
target or stops with the list, so a project with several targets had no
way through. Port @sentry/wizard's --app-target and --hosted-test-target,
which name the targets instead of picking them, and point the
non-interactive errors at them. Both apply to appleSnapshots only.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from BYK November 27, 2026 22:48
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 27, 2026 11:00pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 27, 2026 11:00pm UTC

Request Review

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The deprecated @sentry/wizard shim in packages/wizard still drops --app-target and --hosted-test-target with a notice. Forwarding them would be a small follow-up if we want old command lines to keep working.

Yes please

…zard

The deprecated @sentry/wizard forwarder dropped both flags with a notice.
sentry wizard takes them now, so pass them on with their values.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@BYK
BYK enabled auto-merge November 27, 2026 23:00
@vercel
vercel Bot temporarily deployed to Preview – sentry-local November 27, 2026 23:00 Inactive
@BYK
BYK added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit e72bcc0 Nov 27, 2026
29 of 30 checks passed
@BYK
BYK deleted the feat/cli-wizard-apple-target-flags branch November 27, 2026 23:15
github-actions Bot pushed a commit to Fields-Education/sentry-mcp that referenced this pull request Nov 28, 2026
…tsentry#2578)

getsentry#2574 added `--app-target` and `--hosted-test-target`
to `sentry wizard --help`, but the inline help snapshot that
getsentry#2547 added in
`packages/cli/test/wizard-e2e/help-message.test.ts` still lists only
`--force`.

This updates only that snapshot: the two new flag lines and the wider
flag table.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A875cd8525be461c20f1b8e42904f69e6 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A875cd8525be461c20f1b8e42904f69e6)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A875cd8525be461c20f1b8e42904f69e6/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 2eaaa36c Deployed Nov 27, 2026 by vercel[bot]
Preview – sentry-local — 2eaaa36c Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant