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

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