Installation
Sentry CLI can be installed in several ways depending on your environment and preferences. Choose the method that works best for your workflow.Install Script (Recommended)
The install script is the fastest way to get started. It automatically detects your platform, downloads the appropriate binary, and configures your shell.The install script supports macOS, Linux, and Windows (via Git Bash/WSL). It requires
curl and standard Unix utilities.Install Script Options
The install script supports several options for customization:What the Install Script Does
Binary Download
Downloads the appropriate native binary from GitHub Releases (for stable versions) or GHCR (for nightly builds). The script attempts to download gzip-compressed binaries first (~60% smaller) before falling back to uncompressed versions.
Installation & Setup
Delegates to the binary’s built-in
sentry cli setup --install command, which:- Installs the binary to an appropriate directory (
~/.sentry/binor custom location) - Updates your shell configuration files (
.bashrc,.zshrc, etc.) to add the binary to your PATH - Installs shell completions for Bash, Zsh, and Fish
- Displays a welcome message with next steps
Error Reporting
The install script includes automatic error reporting to help improve installation reliability. Errors are sent to Sentry using a write-only DSN.Opt out of telemetry by setting
SENTRY_CLI_NO_TELEMETRY=1 before running the install script.Homebrew
For macOS users, Homebrew provides an easy installation method:- Installs the binary to your Homebrew bin directory
- Adds it to your PATH
- Manages updates with
brew upgrade
Updating via Homebrew
Package Managers
Sentry CLI is available on npm and compatible package managers. This is ideal for Node.js projects or when you want to pin a specific version in your project’s dependencies.Package manager installations require Node.js 22 or higher. The npm package includes the bundled CLI code that runs on Node.js.
Project-Local Installation
You can also install Sentry CLI as a project dependency:package.json
Run Without Installing
Usenpx to run Sentry CLI without installing it globally. This is useful for one-off commands or testing:
npx downloads and caches the package on first run, so subsequent commands are faster.Platform Support
Sentry CLI provides native binaries for the following platforms:| Operating System | Architecture | Install Script | Homebrew | npm/npx |
|---|---|---|---|---|
| macOS | x64 (Intel) | ✅ | ✅ | ✅ |
| macOS | ARM64 (M1+) | ✅ | ✅ | ✅ |
| Linux | x64 | ✅ | ❌ | ✅ |
| Linux | ARM64 | ✅ | ❌ | ✅ |
| Windows | x64 | ✅* | ❌ | ✅ |
*Windows support via Git Bash, WSL, or MSYS2.
Nightly Builds
Nightly builds contain the latest features and fixes but may be less stable than official releases. They’re distributed via GitHub Container Registry (GHCR).Installing Nightly Builds
Nightly builds use versioned tags (
:nightly-<version>) on GHCR to support delta upgrades, which download only the changes between versions (~50KB vs ~29MB full download).Verifying Installation
After installation, verify that Sentry CLI is available:Upgrading
To upgrade to the latest version:The
sentry cli upgrade command remembers your installation method and upgrade channel (stable or nightly) for seamless updates.Uninstalling
To remove Sentry CLI from your system:Configuration Directory
Sentry CLI stores authentication tokens, cached data, and configuration in~/.sentry/:
You can override the config directory by setting
SENTRY_CONFIG_DIR environment variable.Next Steps
Quick Start
Learn how to authenticate and run your first commands
Commands
Explore all available commands and their options