{"_id":"sentry@0.49.0","bin":{"sentry":"dist/bin.cjs"},"bugs":{"url":"https://github.com/getsentry/toolkit/issues"},"dist":{"shasum":"6ec8cf447f1aa3f326e9838d2537d33c5d233683","tarball":"http://registry-npm.ywwl.com/sentry/download/sentry-0.49.0.tgz","fileCount":609,"integrity":"sha512-9tjS0jTx5FQzhwAGhpcnwvqE0MlQiwJtunsIUNqGkw6E9CBOMbijlamIDUqvZTDtJAveVwa9L5ziP44bOJUzcQ==","signatures":[{"sig":"MEUCIQCQA9Io+IwTPhofDNgC/cm8RmYP0fog7ppqe8AzYiaplgIgOjFv0xrgrZ+LjFeeh19lkLDl+R3hvZ0T1epCBqgXKzc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBAFyL1liybFEZe0vpDorPHoT74Xv1/jwaJrlbcGZUrcAiEAgn4ztELLxe99n3s6gYzaYPHBZQAXpEWTZr8W+Y+GzrA="}],"unpackedSize":21446585,"size":6090419,"noattachment":false,"key":"/sentry/-/sentry-0.49.0.tgz"},"main":"./dist/index.cjs","name":"sentry","type":"module","_from":"file:/tmp/craft-o7DrIf/sentry-0.49.0.tgz","types":"./dist/index.d.cts","engines":{"node":">=20.0"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"license":"FSL-1.1-Apache-2.0","scripts":{"cli":"node script/ensure-generated.mjs && tsx --env-file-if-exists=.env.local --import ./script/require-shim.mjs --import ./script/strip-arg-separator.mjs src/bin.ts","dev":"tsx script/generate.ts docs sdk && tsx --import ./script/require-shim.mjs --import ./script/strip-arg-separator.mjs src/bin.ts","tsx":"tsx --env-file-if-exists=.env.local --import ./script/require-shim.mjs","lint":"pnpm -w exec oxlint --report-unused-disable-directives packages/cli && pnpm -w exec oxfmt --check packages/cli","test":"pnpm run test:unit","bench":"pnpm tsx script/bench.ts","build":"pnpm --filter @sentry/mcp-core run build && tsx script/generate.ts docs sdk && pnpm tsx script/build.ts --single","bundle":"pnpm --filter @sentry/mcp-core run build && tsx script/generate.ts docs sdk && pnpm tsx script/bundle.ts","generate":"tsx script/generate.ts docs sdk","lint:fix":"pnpm -w exec oxlint --fix packages/cli && pnpm -w exec oxfmt --write packages/cli","test:e2e":"pnpm tsx script/prepare-e2e-bundle.ts && vitest run test/e2e","build:all":"pnpm --filter @sentry/mcp-core run build && tsx script/generate.ts docs sdk && pnpm tsx script/build.ts","ci:policy":"pnpm run check:patches && pnpm run check:deps && pnpm run check:errors && pnpm run check:fragments && pnpm run check:docs-sections && pnpm run check:env-coverage && pnpm run check:stale-refs && pnpm run check:doc-examples && pnpm run check:installer-docs && pnpm run check:destructive","test:unit":"tsx script/generate.ts docs sdk && vitest run test/lib test/commands test/types test/script --coverage","typecheck":"pnpm --filter @sentry/mcp-core run build && tsx script/generate.ts docs sdk && tsc --noEmit","bench:save":"pnpm tsx script/bench.ts --save-baseline","check:deps":"pnpm tsx script/check-no-deps.ts","eval:skill":"pnpm tsx script/eval-skill.ts","bench:sweep":"pnpm tsx script/bench-sweep.ts","check:errors":"pnpm tsx script/check-error-patterns.ts","generate:sdk":"tsx script/generate.ts sdk","test:changed":"tsx script/generate.ts docs sdk && vitest run --changed","bench:compare":"pnpm tsx script/bench.ts --compare","check:patches":"pnpm tsx script/check-patches.ts","generate:docs":"tsx script/generate.ts docs","generate:skill":"tsx script/generate.ts skill","check:fragments":"pnpm tsx script/check-fragments.ts --strict","generate:banner":"tsx script/generate.ts banner","generate:schema":"tsx script/generate.ts schema","check:stale-refs":"pnpm tsx script/check-stale-references.ts","generate:grammar":"node ../../scripts/generate-parsers.mjs .","check:destructive":"pnpm tsx script/check-destructive-commands.ts","check:doc-examples":"pnpm tsx script/check-doc-examples.ts","check:env-coverage":"pnpm tsx script/check-env-coverage.ts","check:docs-sections":"tsx script/generate.ts docs-sections --check","check:installer-docs":"pnpm tsx script/check-installer-docs.ts","generate:command-api":"tsx script/generate.ts command-api","generate:completions":"tsx script/generate.ts completions","generate:command-docs":"tsx script/generate.ts command-docs","generate:docs-sections":"tsx script/generate.ts docs-sections","generate:output-schemas":"tsx script/generate.ts output-schemas","generate:top-level-routes":"tsx script/generate.ts top-level-routes"},"version":"0.49.0","_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"homepage":"https://github.com/getsentry/toolkit#readme","sentryCi":{"policy":"ci:policy","coverage":"coverage/lcov.info","npmRuntime":"bundle"},"_resolved":"/tmp/craft-o7DrIf/sentry-0.49.0.tgz","_integrity":"sha512-9tjS0jTx5FQzhwAGhpcnwvqE0MlQiwJtunsIUNqGkw6E9CBOMbijlamIDUqvZTDtJAveVwa9L5ziP44bOJUzcQ==","devEngines":{"runtime":{"name":"node","version":">=22.15"}},"repository":{"url":"git+https://github.com/getsentry/toolkit.git","type":"git"},"_npmVersion":"11.19.1","description":"Sentry CLI - A command-line interface for using Sentry built by robots and humans for robots and humans","directories":{},"maintainers":[{"name":"zeeg","email":"dcramer@gmail.com"},{"name":"sentry-bot","email":"accounts@sentry.io"}],"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0","devDependencies":{"ink":"^7.1.0","tsx":"^4.22.4","hono":"catalog:","chalk":"^5.6.2","peggy":"^5.1.0","pngjs":"^7.0.0","react":"^19.2.7","yauzl":"3.4.0","fflate":"^0.8.3","ignore":"^7.0.5","marked":"catalog:","semver":"^7.8.5","uuidv7":"^1.2.1","vitest":"catalog:","esbuild":"^0.28.1","jpeg-js":"^0.4.4","p-limit":"^7.3.0","valibot":"^1.4.2","binpatch":"^0.4.2","fossilize":"^0.10.1","picomatch":"^4.0.4","pretty-ms":"^9.3.0","wrap-ansi":"^10.0.0","fast-check":"^4.8.0","pixelmatch":"^7.2.0","tinyglobby":"^0.2.17","typescript":"catalog:","@sentry/api":"catalog:","@types/node":"^22.20.0","shell-quote":"^1.10.0","@sentry/core":"catalog:","@sentry/node":"catalog:","@types/pngjs":"^6.0.5","@types/react":"^19.2.17","@types/yauzl":"3.4.0","string-width":"^8.2.1","@stricli/core":"1.2.8","@types/semver":"^7.7.1","cli-highlight":"^2.1.11","@clack/prompts":"0.11.0","@sentry/logger":"workspace:*","@sentry/sqlish":"^1.0.1","qrcode-terminal":"^0.12.0","@sentry/mcp-core":"workspace:*","@sentry/symbolic":"14.0.0-alpha.5","@types/picomatch":"^4.0.3","@anthropic-ai/sdk":"^0.39.0","@hono/node-server":"^2.1.3","node-sqlite3-wasm":"0.8.59","@vitest/coverage-v8":"catalog:","react-devtools-core":"^7.0.1","@sentry/toolkit-core":"workspace:*","http-cache-semantics":"^4.2.0","@sentry/search-syntax":"catalog:","@spotlightjs/spotlight":"^4.11.7","@stricli/auto-complete":"^1.2.8","@types/qrcode-terminal":"^0.12.2","@types/http-cache-semantics":"^4.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sentry_0.49.0_1794019770846_0.44454967767884146"},"readme":"<p align=\"center\">\n  <img src=\".github/assets/banner.png\" alt=\"Sentry CLI\" />\n</p>\n\n<p align=\"center\">\n  The command-line interface for Sentry. Built for developers and AI agents.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://cli.sentry.dev\">Documentation</a> |\n  <a href=\"https://cli.sentry.dev/getting-started/\">Getting Started</a> |\n  <a href=\"https://cli.sentry.dev/commands/\">Commands</a>\n</p>\n\n---\n\n## Installation\n\n### Install Script (Recommended)\n\n```bash\ncurl https://cli.sentry.dev/install -fsS | bash\n```\n\n### Windows (PowerShell)\n\n```powershell\nirm https://cli.sentry.dev/install.ps1 | iex\n```\n\n### Homebrew\n\n```bash\nbrew install getsentry/tools/sentry\n```\n\n### Package Managers\n\n```bash\nnpm install -g sentry\npnpm add -g sentry\nyarn global add sentry\nbun add -g sentry\n```\n\n> The npm/pnpm/yarn packages require Node.js 20+. On Node.js 22.15+ the CLI uses the built-in `node:sqlite`; on Node.js 20–22.14 it transparently falls back to a bundled WASM SQLite driver.\n\nHomebrew and package manager installs don't add agent skills (package managers also skip shell completions). Run `sentry cli setup` once afterwards; see the [installation guide](https://cli.sentry.dev/getting-started/).\n\n### Run Without Installing\n\n```bash\nnpx sentry@latest\npnpm dlx sentry --help\nyarn dlx sentry --help\nbunx sentry --help\n```\n\n## Quick Start\n\n```bash\n# Authenticate with Sentry\nsentry auth\n\n# List issues (auto-detects project from your codebase)\nsentry issue list\n\n# Get AI-powered root cause analysis\nsentry issue explain PROJ-ABC\n\n# Generate a fix plan\nsentry issue plan PROJ-ABC\n```\n\n## Features\n\n- **DSN Auto-Detection** - Automatically detects your project from `.env` files or source code. No flags needed.\n- **Seer AI Integration** - Get root cause analysis and fix plans directly in your terminal.\n- **Monorepo Support** - Works with multiple projects, generates short aliases for easy navigation.\n- **JSON Output** - All commands support `--json` for scripting and pipelines.\n- **Open in Browser** - Use `-w` flag to open any resource in your browser.\n\n## Commands\n\nRun `sentry --help` to see all available commands, or browse the [command reference](https://cli.sentry.dev/commands/).\n\n## Configuration\n\nCredentials are stored in `$XDG_CONFIG_HOME/sentry/` (defaulting to `~/.config/sentry/`) with restricted permissions (mode 600). A pre-existing legacy `~/.sentry/` directory is still honored, and the location can be overridden with `SENTRY_CONFIG_DIR`.\n\n## Library Usage\n\n<!-- GENERATED:START library-prereq -->\nUse Sentry CLI programmatically in Node.js (≥20.0) without spawning a subprocess:\n<!-- GENERATED:END library-prereq -->\n\n```typescript\nimport createSentrySDK from \"sentry\";\n\nconst sdk = createSentrySDK({ token: \"sntrys_...\" });\n\n// Typed methods for every CLI command\nconst orgs = await sdk.org.list();\nconst issues = await sdk.issue.list({ orgProject: \"acme/frontend\", limit: 5 });\nconst issue = await sdk.issue.view({}, \"ACME-123\");\n\n// Nested commands\nawait sdk.dashboard.widget.add(\n  { display: \"line\", query: [\"count\"] },\n  \"acme/\", \"my-dashboard\", \"Errors over time\"\n);\n\n// Escape hatch for any CLI command\nconst version = await sdk.run(\"--version\");\nconst text = await sdk.run(\"issue\", \"list\", \"-n\", \"5\");\n```\n\nOptions (all optional):\n- `token` — Auth token. Falls back to the stored login from `sentry auth login`, then `SENTRY_AUTH_TOKEN` / `SENTRY_TOKEN` env vars.\n- `url` — Sentry instance URL for self-hosted (e.g., `\"sentry.example.com\"`).\n- `org` — Default organization slug (avoids passing it on every call).\n- `project` — Default project slug.\n- `text` — Return human-readable string instead of parsed JSON (affects `run()` only).\n- `cwd` — Working directory for DSN auto-detection. Defaults to `process.cwd()`.\n- `headers` — Extra HTTP headers for self-hosted instances behind a reverse proxy (same as `SENTRY_CUSTOM_HEADERS`). Ignored for sentry.io.\n- `signal` — `AbortSignal` to cancel streaming commands (`--follow`, `--refresh`).\n\nStreaming commands return `AsyncIterable` — use `for await...of` and `break` to stop.\n\nErrors are thrown as `SentryError` with `.exitCode` and `.stderr`.\n\n---\n\n## Development\n\n### Prerequisites\n\n<!-- GENERATED:START dev-prereq -->\n- [Node.js](https://nodejs.org) v22.15+ and [pnpm](https://pnpm.io) v11.8+\n<!-- GENERATED:END dev-prereq -->\n\n### Setup\n\n```bash\ngit clone https://github.com/getsentry/toolkit.git\ncd toolkit\npnpm install\ncd packages/cli\n```\n\n### Running Locally\n\n```bash\n# Run CLI in development mode (generates missing build-time files on first run)\npnpm run cli --help\n\n# Loads packages/cli/.env.local automatically when present (see DEVELOPMENT.md)\npnpm run cli auth status\n```\n\n### Scripts\n\n<!-- GENERATED:START dev-scripts -->\n```bash\npnpm run build         # Build for current platform\npnpm run typecheck     # Type checking\npnpm run lint          # Check for issues\npnpm run lint:fix      # Auto-fix issues\npnpm run test:unit     # Run unit tests\npnpm run test:e2e      # Run end-to-end tests\npnpm run generate:docs # Regenerate command docs and skills\n```\n<!-- GENERATED:END dev-scripts -->\n\nSee [DEVELOPMENT.md](DEVELOPMENT.md) for detailed setup and [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.\n\n## License\n\n[FSL-1.1-Apache-2.0](LICENSE.md)\n","publish_time":1794019771050,"_cnpm_publish_time":1794019771050,"dist-tags":{"latest":"0.50.0"}}