# Release と Sourcemap アップロードのための Sentry CLI
Sentry の release、commit、deploy、sourcemap artifact をターミナルで管理できます。
Agent Readiness Score: 73/100
Good for release automation, but auth tokens and artifact uploads need tight controls.
## Install

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

## Structured output

Supported output formats: json, text.
Prefer structured output flags such as `--json`, `--format json`, or equivalent when available.

## Safe commands

- List releases: `sentry-cli releases list --org my-org` — Inspects release history.

## Commands requiring approval

- Upload sourcemaps: `sentry-cli sourcemaps upload ./dist` — requires-review; require explicit user approval.

## Agent instructions

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

## Safety notes

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

## Metadata

Official URL: https://docs.sentry.io/product/cli/
GitHub: https://github.com/getsentry/sentry-cli
Docs: https://docs.sentry.io/product/cli/
