talira

Sentry CLI

The official command line interface for Sentry

source availableFSL-1.1-MITself-hostablefree

Sentry CLI (sentry-cli) is Sentry's command-line tool for build pipelines: it uploads debug information files and source maps so Sentry can symbolicate crashes and show original source, creates and manages releases, sets up code mappings, sends events, manages cron monitors, uploads snapshot images for visual diffs and streams logs. It works with Sentry SaaS and self-hosted Sentry 24.11.1 and later, ships as a single Rust binary for macOS, Linux and Windows, and installs through npm, PyPI, Homebrew, Scoop or Docker. It is licensed FSL-1.1-MIT. Sentry says this repository is no longer under active development, as a new Sentry CLI will replace it.

Ways to install

Problems it solves

  • upload source maps from my build so production JavaScript errors show the original code
  • upload iOS dSYMs and Android debug symbols from CI so crash reports are symbolicated
  • create an error tracking release from my deploy pipeline and attach the commits in it
  • send a test error event from the command line to check that error reporting works
  • set up monitoring for my scheduled cron jobs from the command line
  • make stack traces in my error tracker link to the right files in my repository
  • stream my application's logs from the error tracker into my terminal
  • upload screenshots from CI for visual diffs with a status check on the pull request

Features

  • source map upload
  • debug information file validation and upload
  • create, edit and delete releases
  • code mappings
  • send events
  • view and stream logs
  • cron monitors
  • snapshot uploads for visual diffing
  • single binary for macOS, Linux and Windows
  • npm, PyPI, Homebrew, Scoop and Docker installs

Limitations

  • Some commands don't work with self-hosted Sentry: the sentry-cli build commands are restricted to Sentry SaaS3
  • Doesn't support self-hosted Sentry older than 24.11.1 in version 3: those installs need sentry-cli 2.58.63

Capabilities

Has a command line toolplan not known