CLI Finder / tools / sentry-cli

用于 Release 和 Sourcemap 上传的 Sentry CLI

从终端管理 Sentry Release、提交、部署和 Sourcemap 产物。

Agent 适配度: 73/100 已验证发布者 持续维护
73 /100

Good for release automation, but auth tokens and artifact uploads need tight controls.

Structured output 72/100

Whether the CLI can return JSON, YAML, or stable machine-readable output.

Non-interactive use 78/100

Whether common workflows can run predictably without an interactive prompt.

Safety boundaries 56/100

Whether read-only, dry-run, scoped auth, and destructive command boundaries are clear.

安装方式

npm $ npm install -g @sentry/cli
Homebrew $ brew install getsentry/tools/sentry-cli

常用命令

List releases · 安全 $ sentry-cli releases list --org my-org

Inspects release history.

Upload sourcemaps · 需确认 $ sentry-cli sourcemaps upload ./dist

Changes release artifact state.

Agent 使用示例

Codex CLI Use Sentry CLI to inspect release state and upload sourcemaps only after build artifacts are verified.

安全说明

  • Release creation and sourcemap upload change production observability state.
  • Agents should inspect releases before creating or finalizing new ones.

Agent 可以用它做什么

Sentry CLI 可以帮助 Agent 检查 Release 状态、关联提交并上传已验证的 Sourcemap。

适合场景

适合部署流水线中需要让可观测性产物匹配线上版本的场景。