awesome cli.

Source control & CI

Sentry CLI for coding agents

Manage releases, commits and deployments. Upload source maps and debug files, or look up events from scripts.

Open the official project ↗

This article follows the official documentation. We haven’t tested this tool for a hands-on review.

When a coding agent works in a code repository that sends error reports to Sentry, it can use the Sentry CLI, a command-line tool, to manage releases and upload debugging files. A release is a named version of your code in Sentry. When you associate commits with a release, Sentry can connect deployed code to reported issues. The official CLI documentation covers these tasks and others, including sending events and managing code mappings.

The CLI is useful when an agent needs to prepare release information or upload artifacts as part of a deployment. It does not automatically give an agent Sentry’s full issue-investigation capabilities. This article covers sentry-cli for release and build tasks. Sentry also offers a separate developer CLI for investigating issues. Its commands differ from the build CLI shown here.

Install and authenticate

On macOS or Linux, Sentry documents this installation method:

curl -sL https://sentry.io/get-cli/ | sh
sentry-cli --help

The installer downloads a binary for your operating system. The installation page also provides manual downloads and an npm package.

Sentry documents SENTRY_AUTH_TOKEN, SENTRY_ORG, and SENTRY_PROJECT as environment variables for CLI configuration. The auth token lets the CLI authenticate with Sentry; the organization and project values select the Sentry account and project. Configure the shell, CI environment, or secret manager that launches the agent with these values. Do not put the token in the agent’s prompt or commit it to the repository. The same documentation covers a .sentryclirc configuration file and sentry-cli login for interactive setup.

Before giving an agent access, confirm that the token and account have the permissions required for the specific command. The cited setup material does not define a universal permission set.

Check a proposed release version

Before a release owner publishes anything, ask an agent to check the release identifier Sentry CLI proposes for the current checkout. This is a read-only task. In a repository with sentry-cli installed, the agent can run:

sentry-cli releases propose-version

The command prints a proposed release identifier. Its exact value depends on the repository state; treat the printed value as the CLI’s proposal, not proof that Sentry has created a release. The command derives a version from the local checkout. It does not create a Sentry release or upload files. Review the release commands in Sentry’s CLI documentation and the installed command’s help if the command is unavailable or the result is unexpected.

A coding agent could receive this prompt:

Check the release version Sentry CLI proposes for this checkout. Run only the read-only version proposal command, report the exact value and any error, and do not create a release or upload artifacts.

This example does not require an auth token in the prompt. If the agent continues from inspection to release creation, that next command contacts Sentry and changes service-side data. The release owner should review the proposed version and authorize that write separately. The release documentation explains how to create a release and associate commits with it.

Know what the output flags support

The traditional CLI manages releases and commits. It also handles deployments, source maps, and debug information files. Those capabilities make it useful in a deployment pipeline, where an agent can prepare release metadata or artifact-upload commands. A source map links compiled code back to its original source, helping Sentry display useful locations in error reports.

Do not assume that the CLI supports a particular output format or preview flag. Check the installed command’s help and the relevant official documentation before using flags such as --json or --dry-run; this article does not establish that either is available. The command above checks the local checkout. Commands that create a release, associate commits, or upload files send requests to Sentry.

Tool details come from awesome-ai-cli.