Skip to content
Open
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
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ module.exports = {
assertFunctionNames: [
'expect',
'checkFileContents',
'checkFileDoesNotContain',
'checkFileDoesNotExist',
'checkSentryProperties',
'checkPackageJson',
'checkIfBuilds',
Expand Down
37 changes: 37 additions & 0 deletions bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,43 @@ const argv = yargs(hideBin(process.argv), process.cwd())
'Enable Spotlight for local development. This does not require a Sentry account or project.',
type: 'boolean',
},
'non-interactive': {
default: false,
describe:
'[NextJS only] Run in non-interactive mode. Skips all prompts and uses environment variable placeholders for auth.',
type: 'boolean',
},
tracing: {
describe:
'[NextJS only] Enable performance/tracing monitoring. When set, skips the tracing prompt.',
type: 'boolean',
},
replay: {
describe:
'[NextJS only] Enable Session Replay. When set, skips the replay prompt.',
type: 'boolean',
},
logs: {
describe:
'[NextJS only] Enable Sentry Logs. When set, skips the logs prompt.',
type: 'boolean',
},
'tunnel-route': {
describe:
'[NextJS only] Enable tunnel route for ad-blocker circumvention. When set, skips the tunnel route prompt.',
type: 'boolean',
},
'example-page': {
describe:
'[NextJS only] Create an example page to test Sentry. When set, skips the example page prompt.',
type: 'boolean',
},
mcp: {
describe:
'[NextJS only] 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
18 changes: 18 additions & 0 deletions e2e-tests/tests/help-message.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@ describe('--help command', () => {
--spotlight Enable Spotlight for local development. This does
not require a Sentry account or project.
[boolean] [default: false]
--non-interactive [NextJS only] Run in non-interactive mode. Skips all
prompts and uses environment variable placeholders
for auth. [boolean] [default: false]
--tracing [NextJS only] Enable performance/tracing monitoring.
When set, skips the tracing prompt. [boolean]
--replay [NextJS only] Enable Session Replay. When set, skips
the replay prompt. [boolean]
--logs [NextJS only] Enable Sentry Logs. When set, skips
the logs prompt. [boolean]
--tunnel-route [NextJS only] Enable tunnel route for ad-blocker
circumvention. When set, skips the tunnel route
prompt. [boolean]
--example-page [NextJS only] Create an example page to test Sentry.
When set, skips the example page prompt. [boolean]
--mcp [NextJS only] Add MCP (Model Context Protocol)
config for specified IDE(s). Options: cursor,
vscode, claude, opencode, jetbrains
[array] [choices: "cursor", "vscode", "claude", "opencode", "jetbrains"]
--version Show version number [boolean]
"
`);
Expand Down
Loading
Loading