{"name":"sentry","version":"0.34.0","license":"FSL-1.1-Apache-2.0","_id":"sentry@0.34.0","maintainers":[{"name":"zeeg","email":"dcramer@gmail.com"},{"name":"sentry-bot","email":"accounts@sentry.io"}],"homepage":"https://github.com/getsentry/cli#readme","bugs":{"url":"https://github.com/getsentry/cli/issues"},"bin":{"sentry":"dist/bin.cjs"},"dist":{"shasum":"6b43a2b7b5c0b30adb53dfb63d5a765efe518fa3","tarball":"http://registry-npm.ywwl.com/sentry/download/sentry-0.34.0.tgz","fileCount":7,"integrity":"sha512-opRWxr4zd2Ti8XQhe1E01MI9hicTSXIxZvghcAkTEpHNmx5ynyVvg5aqEEkBToUt9uqTnDEoiYeQrx0/nFWO1A==","signatures":[{"sig":"MEUCIFBPkQZVMd2YWZ8p+2+hlH3ZLkGzXfGx5jmLu6arbA0IAiEAuRc9ZB9RPBMNhoyqYAU4HoRj3P4aUUKVWNUtl/Q8HDk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6575336,"size":1510747,"noattachment":false,"key":"/sentry/-/sentry-0.34.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:/tmp/craft-Hgbi24/sentry-0.34.0.tgz","types":"./dist/index.d.cts","engines":{"node":">=22.12"},"exports":{".":{"types":"./dist/index.d.cts","default":"./dist/index.cjs","require":"./dist/index.cjs"}},"scripts":{"cli":"bun run src/bin.ts","dev":"bun run generate:schema && bun run generate:docs && bun run generate:sdk && bun run src/bin.ts","lint":"bunx ultracite check","test":"bun run test:unit","bench":"bun run script/bench.ts","build":"bun run generate:schema && bun run generate:docs && bun run generate:sdk && bun run script/build.ts --single","bundle":"bun run generate:schema && bun run generate:docs && bun run generate:sdk && bun run script/bundle.ts","lint:fix":"bunx ultracite fix","test:e2e":"bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 test/e2e","build:all":"bun run generate:schema && bun run generate:docs && bun run generate:sdk && bun run script/build.ts","test:unit":"bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 --isolate --parallel test/lib test/commands test/types --coverage --coverage-reporter=lcov","typecheck":"bun run generate:docs && bun run generate:sdk && tsc --noEmit","bench:save":"bun run script/bench.ts --save-baseline","check:deps":"bun run script/check-no-deps.ts","eval:skill":"bun run script/eval-skill.ts","bench:sweep":"bun run script/bench-sweep.ts","check:errors":"bun run script/check-error-patterns.ts","generate:sdk":"bun run script/generate-sdk.ts","test:changed":"bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 --isolate --changed","bench:compare":"bun run script/bench.ts --compare","generate:docs":"bun run generate:parser && bun run generate:command-docs && bun run generate:skill && bun run generate:docs-sections","generate:skill":"bun run script/generate-skill.ts","test:init-eval":"bun test test/init-eval --timeout 600000 --concurrency 6","check:fragments":"bun run script/check-fragments.ts","generate:parser":"bun run script/generate-parser.ts","generate:schema":"bun run script/generate-api-schema.ts","check:docs-sections":"bun run script/generate-docs-sections.ts --check","generate:command-docs":"bun run script/generate-command-docs.ts","generate:docs-sections":"bun run script/generate-docs-sections.ts"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"_resolved":"/tmp/craft-Hgbi24/sentry-0.34.0.tgz","_integrity":"sha512-opRWxr4zd2Ti8XQhe1E01MI9hicTSXIxZvghcAkTEpHNmx5ynyVvg5aqEEkBToUt9uqTnDEoiYeQrx0/nFWO1A==","repository":{"url":"git+https://github.com/getsentry/cli.git","type":"git"},"_npmVersion":"10.9.8","description":"Sentry CLI - A command-line interface for using Sentry built by robots and humans for robots and humans","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"packageManager":"bun@1.3.13","devDependencies":{"ink":"^7.0.1","zod":"^3.24.0","chalk":"^5.6.2","peggy":"^5.1.0","react":"^19.2.5","ignore":"^7.0.5","marked":"^15","semver":"^7.7.3","uuidv7":"^1.1.0","consola":"^3.4.2","esbuild":"^0.25.0","p-limit":"^7.2.0","binpunch":"^1.0.0","picomatch":"^4.0.3","pretty-ms":"^9.3.0","ultracite":"6.3.10","wrap-ansi":"^10.0.0","@types/bun":"latest","fast-check":"^4.5.3","tinyglobby":"^0.2.15","typescript":"^5","@sentry/api":"^0.141.0","@types/node":"^22","ink-spinner":"^5.0.0","@types/react":"^19.2.14","string-width":"^8.2.0","@stricli/core":"^1.2.4","@types/semver":"^7.7.1","cli-highlight":"^2.1.11","@biomejs/biome":"2.3.8","@sentry/sqlish":"^1.0.0","qrcode-terminal":"^0.12.0","@types/picomatch":"^4.0.3","@anthropic-ai/sdk":"^0.39.0","@mastra/client-js":"^1.4.0","@sentry/node-core":"10.50.0","react-devtools-core":"^7.0.1","http-cache-semantics":"^4.2.0","@stricli/auto-complete":"^1.2.4","@types/qrcode-terminal":"^0.12.2","@types/http-cache-semantics":"^4.2.0"},"patchedDependencies":{"@stricli/core@1.2.5":"patches/@stricli%2Fcore@1.2.5.patch","@sentry/core@10.50.0":"patches/@sentry%2Fcore@10.50.0.patch","@sentry/node-core@10.50.0":"patches/@sentry%2Fnode-core@10.50.0.patch"},"_npmOperationalInternal":{"tmp":"tmp/sentry_0.34.0_1778865051229_0.18568732464126314","host":"s3://npm-registry-packages-npm-production"},"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### 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\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({ issue: \"ACME-123\" });\n\n// Nested commands\nawait sdk.dashboard.widget.add({ display: \"line\", query: \"count\" }, \"my-org/my-dashboard\");\n\n// Escape hatch for any CLI command\nconst version = await sdk.run(\"--version\");\nconst text = await sdk.run(\"issue\", \"list\", \"-l\", \"5\");\n```\n\nOptions (all optional):\n- `token` — Auth token. Falls back to `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\npnpm run cli -- --help\n\n# With environment variables (create .env.local first, see DEVELOPMENT.md)\npnpm run cli -- --help\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":1778865051515,"_cnpm_publish_time":1778865051515,"dist-tags":{"latest":"0.50.0"}}