Skip to content

Commit 35d9b0d

Browse files
authored
fix(setup): use correct auth command in install welcome message (#241)
## Summary The post-install welcome message showed `sentry login` but the actual command is `sentry auth login`. Users following the printed instructions would get an error. ## Changes Fixed the command in `printWelcomeMessage` and updated the corresponding test assertion. ## Test Plan `bun test test/commands/cli/setup.test.ts` — all 18 tests pass. --- Closes #239
1 parent d010122 commit 35d9b0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/cli/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function printWelcomeMessage(
171171
log(`Installed sentry v${version} to ${binaryPath}`);
172172
log("");
173173
log("Get started:");
174-
log(" sentry login Authenticate with Sentry");
174+
log(" sentry auth login Authenticate with Sentry");
175175
log(" sentry --help See all available commands");
176176
log("");
177177
log("https://cli.sentry.dev");

test/commands/cli/setup.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ describe("sentry cli setup", () => {
378378
// Should show welcome message, not "Setup complete!"
379379
expect(combined).toContain("Installed sentry v");
380380
expect(combined).toContain("Get started:");
381-
expect(combined).toContain("sentry login");
381+
expect(combined).toContain("sentry auth login");
382382
expect(combined).toContain("sentry --help");
383383
expect(combined).toContain("cli.sentry.dev");
384384
expect(combined).not.toContain("Setup complete!");

0 commit comments

Comments
 (0)