Dashboard › cli › Distillation
65f11e87-b27f-47c3-8e31-4dd803cea52a["lore_tm_v1_--WL7xC6N4CappYI8VNANTlg9OqsEOM4dzACXrD6Ebk","lore_tm_v1_3RaxZG9vfgZmPGFEJveyQByMfAZdAeJTAeQrChcpAIc","lore_tm_v1_TsBAST0AusSOi5uAxX4PvICC9haaP-aGrpAlsqT4Ryk","lore_tm_v1_Adw0lpDsG5V-W82DXF9Zxg-9obnLLAXMD-l70kzP_Qw"]
package.json defines workspace package toolkit-cli-workspace version 0.0.0, with "private": true, "type": "module", package manager pnpm@10.11.0, and Node engine requirement >=20.0.package.json scripts delegate to the sentry workspace package via pnpm --filter sentry run: tsx, cli, dev, build, build:all, bundle, typecheck, lint, lint:fix, test, test:unit, test:changed, test:e2e, test:init-eval, generate:parser, generate:sdk, generate:skill, generate:banner, generate:docs, generate:docs-sections, generate:schema, generate:command-docs, eval:skill, bench, bench:save, bench:compare, bench:sweep, check:fragments, check:deps, check:errors, check:patches, check:docs-sections, and check:stale-refs.package.json patches @stricli/core@1.2.8 via packages/cli/patches/@stricli%2Fcore@1.2.8.patch, @sentry/core@10.63.0 via packages/cli/patches/@sentry%2Fcore@10.63.0.patch, and @sentry/node-core@10.63.0 via packages/cli/patches/@sentry%2Fnode-core@10.63.0.patch.esbuild@>=0.17.0 <0.28.1 → 0.28.1; js-yaml@<3.15.1 → 3.15.1; js-yaml@>=4.0.0 <4.3.1 → 4.3.1; shell-quote@<1.9.0 → 1.9.0; qs@>=6.11.1 <=6.15.1 → 6.15.2; form-data@<4.0.6 → 4.0.6; vite@>=8.0.0 <8.0.16 → 8.0.16; @hono/node-server@<2.0.5 → 2.0.12; fast-uri@<=3.1.3 → 3.1.5; brace-expansion@<5.0.8 → 5.0.9; undici@>=7.0.0 <7.29.0 → 7.29.0; nanoid@<3.3.18 → 3.3.18; ip-address@<10.3.1 → 10.4.0.esbuild under onlyBuiltDependencies.package.json for the latest scripts.devDependencies, never dependencies, because everything is bundled at build time through esbuild; CI enforces this with pnpm run check:deps.pnpm add -D <package>, including the -D flag.per_page value larger than API_MAX_PER_PAGE to the API.───────── for section headers; use standard JSDoc comments or simple // Section Name comments.*.test.ts files under test/, mirroring the src/ structure.packages/cli/CONTRIBUTING.md states the CLI follows gh CLI conventions.sentry org list [--limit N] [--json], sentry project list [org] [--limit N] [--json], and sentry issue list [<org>/<project>] [--json].<org>/<project> for an explicit organization and project (example my-org/frontend); <org>/ for all projects in an organization; <project> to search by project name across all accessible organizations; omission to auto-detect from DSN or config.sentry org view [org-slug] [--json] [-w], sentry project view [<org>/<project>] [--json] [-w], sentry issue view <issue-id> [--json] [-w], and sentry event view [<org>/<project>] <event-id> [--json] [-w]; issue and event IDs are required, while organization/project context may be auto-detected where shown as optional.-w / --web to open the resource in the default browser instead of rendering it in the terminal.<org>/<project>) always win; 2. config defaults set through sentry config set; 3. DSN auto-detection from SENTRY_DSN or source code.--json for JSON output on all view/list commands; -w / --web for browser opening on all view commands; --limit for maximum returned items on list commands.ContextError from ../../lib/errors.js, supplying the required entity, primary usage, and alternatives; the documented example uses "Organization", "sentry org view <org-slug>", and ["Set SENTRY_DSN for auto-detection"].resolveOrg() or resolveOrgAndProject() from lib/resolve-target.ts; 3. support --json; 4. support -w / --web for view commands; 5. use ContextError for missing context; 6. add E2E tests under test/e2e/.