Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,41 @@ const argv = yargs(hideBin(process.argv), process.cwd())
'Enable Spotlight for local development. This does not require a Sentry account or project.',
type: 'boolean',
},
'skip-auth': {
default: false,
describe:
'Skip Sentry authentication and use environment variable placeholders. Enables fully headless CLI operation.',
Comment on lines +163 to +166
Copy link
Member

@Lms24 Lms24 Jan 8, 2026

Choose a reason for hiding this comment

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

For the time being, let's prefix all these options with something like

Suggested change
'skip-auth': {
default: false,
describe:
'Skip Sentry authentication and use environment variable placeholders. Enables fully headless CLI operation.',
'skip-auth': {
default: false,
describe:
'[NextJS only] Skip Sentry authentication and use environment variable placeholders. Enables fully headless CLI operation.',

Users can call npx @sentry/wizard --help and might be confused about why this flag does nothing in e.g. the nuxt or sveltekit wizard.

Which brings me to my last point (for now):

Long-term, we should definitely bring all of these options to all our wizards. I fully understand that trialing this in the most used one makes sense but I really want to avoid the other flows falling behind. We'Ve had that before and it led to sub-par wizard experiences for non-NextJS users. Though let's tackle this in individual PRs please 😅

type: 'boolean',
},
tracing: {
describe:
'Enable performance/tracing monitoring. When set, skips the tracing prompt.',
type: 'boolean',
},
replay: {
describe: 'Enable Session Replay. When set, skips the replay prompt.',
type: 'boolean',
},
logs: {
describe: 'Enable Sentry Logs. When set, skips the logs prompt.',
type: 'boolean',
},
'tunnel-route': {
describe:
'Enable tunnel route for ad-blocker circumvention. When set, skips the tunnel route prompt.',
type: 'boolean',
},
'example-page': {
describe:
'Create an example page to test Sentry. When set, skips the example page prompt.',
type: 'boolean',
},
mcp: {
describe:
'Add MCP (Model Context Protocol) config for specified IDE(s). Options: cursor, vscode, claude, opencode, jetbrains',
type: 'array',
choices: ['cursor', 'vscode', 'claude', 'opencode', 'jetbrains'],
},
'xcode-project-dir': xcodeProjectDirOption,
...PRESELECTED_PROJECT_OPTIONS,
})
Expand Down
Loading
Loading