Skip to main content

A command line utility to work with Sentry.

Project description

Sentry

Official Sentry Command Line Interface

Build Status GitHub release npm version license

This is a Sentry command line client for some generic tasks. Right now this is primarily used to upload debug symbols to Sentry if you are not using the Fastlane tools.

  • Downloads can be found under Releases
  • Documentation can be found here

Installation

If you are on OS X or Linux, you can use the automated downloader which will fetch the latest release version for you and install it:

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

We do, however, encourage you to pin the specific version of the CLI, so your builds are always reproducible. To do that, you can use the exact same method, with an additional version specifier:

curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION=2.33.1 bash

This will automatically download the correct version of sentry-cli for your operating system and install it. If necessary, it will prompt for your admin password for sudo. For a different installation location or for systems without sudo (like Windows), you can export INSTALL_DIR=/custom/installation/path before running this command.

If you are using sentry-cli on Windows environments, Microsoft Visual C++ Redistributable is required.

To verify it’s installed correctly you can bring up the help:

sentry-cli --help

pip

New in 2.14.3: sentry-cli can also be installed using pip:

pip install sentry-cli

Node

Additionally, you can also install this binary via npm:

npm install @sentry/cli

When installing globally, make sure to have set correct permissions on the global node_modules directory. If this is not possible in your environment or still produces an EACCESS error, install as root:

sudo npm install -g @sentry/cli --unsafe-perm

By default, this package will download sentry-cli from the CDN managed by Fastly. To use a custom CDN, set the npm config property sentrycli_cdnurl. The downloader will append "/<version>/sentry-cli-<dist>".

npm install @sentry/cli --sentrycli_cdnurl=https://mymirror.local/path

Or add property into your .npmrc file (https://www.npmjs.org/doc/files/npmrc.html)

sentrycli_cdnurl=https://mymirror.local/path

There are a few environment variables that you can provide to control the npm installation:

SENTRYCLI_CDNURL=<url> # Use alternative cdn url for downloading binary
SENTRYCLI_USE_LOCAL=1 # Use local instance of sentry-cli binary (looked up via $PATH environment)
SENTRYCLI_SKIP_DOWNLOAD=1 # Skip downloading binary entirely
SENTRYCLI_NO_PROGRESS_BAR=1 # Do not print the progress bar when downloading binary (default for non-TTY environments like CI)
SENTRYCLI_LOG_STREAM=<stdout|stderr> # Changes where to redirect install script output

When using sentry-cli via JavaScript API or any 3rd party plugin that is consuming said API, you can also use SENTRY_BINARY_PATH=<path> alongside SENTRYCLI_SKIP_DOWNLOAD=1 to completely control what binaries are downloaded and used throughout the whole process.

If you're installing the CLI with NPM from behind a proxy, the install script will use either NPM's configured HTTPS proxy server or the value from your HTTPS_PROXY environment variable.

Homebrew

A homebrew recipe is provided in the getsentry/tools tap:

brew install getsentry/tools/sentry-cli

Docker

As of version 1.25.0, there is an official Docker image that comes with sentry-cli preinstalled. If you prefer a specific version, specify it as tag. The latest development version is published under the edge tag. In production, we recommend you to use the latest tag. To use it, run:

docker pull getsentry/sentry-cli
docker run --rm -v $(pwd):/work getsentry/sentry-cli --help

Starting version 2.8.0, in case you see "error: config value 'safe.directory' was not found;" message, you also need to correctly set UID and GID of mounted volumes like so:

docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/work getsentry/sentry-cli --help

This is required due to security issue in older git implementations. See here for more details.

Update

To update sentry-cli to the latest version run:

sentry-cli update

Compiling

In case you want to compile this yourself, you need to install at minimum the following dependencies:

  • Rust stable and Cargo
  • Make, CMake and a C compiler

Use cargo to compile:

$ cargo build

Also, there is a Dockerfile that builds an Alpine-based Docker image with sentry-cli in the PATH. To build and use it, run:

docker build -t sentry-cli .
docker run --rm -v $(pwd):/work sentry-cli --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentry_cli-2.38.0.tar.gz (199.5 kB view details)

Uploaded Source

Built Distributions

sentry_cli-2.38.0-py3-none-win_amd64.whl (8.6 MB view details)

Uploaded Python 3 Windows x86-64

sentry_cli-2.38.0-py3-none-win32.whl (7.3 MB view details)

Uploaded Python 3 Windows x86

sentry_cli-2.38.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl (14.5 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64 musllinux: musl 1.2+ x86-64

sentry_cli-2.38.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl (12.1 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ i686 musllinux: musl 1.2+ i686

sentry_cli-2.38.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl (10.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l musllinux: musl 1.2+ ARMv7l

sentry_cli-2.38.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl (11.4 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64 musllinux: musl 1.2+ ARM64

sentry_cli-2.38.0-py3-none-macosx_11_0_universal2.whl (16.8 MB view details)

Uploaded Python 3 macOS 11.0+ universal2 (ARM64, x86-64)

sentry_cli-2.38.0-py3-none-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.38.0-py3-none-macosx_10_15_x86_64.whl (8.9 MB view details)

Uploaded Python 3 macOS 10.15+ x86-64

File details

Details for the file sentry_cli-2.38.0.tar.gz.

File metadata

  • Download URL: sentry_cli-2.38.0.tar.gz
  • Upload date:
  • Size: 199.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for sentry_cli-2.38.0.tar.gz
Algorithm Hash digest
SHA256 5cdc29133df6be2a04d6f82fb84e0d77be714508bd22618a52ac0a3e9960dd88
MD5 36e928005f8be70cdaf3411224425e99
BLAKE2b-256 102e3b18c43f540550dad8e0e24ac2d6373b0f6f2d12665010e0118b04854554

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 35d6633efa2aa930e53f9df641bb74b0452dd39e3514bdb567ef73abeb1af276
MD5 ff1520c5495f5c1f9cfd0c724900762e
BLAKE2b-256 f9d14a9b6b2ad30751ea74ce2d157336232fb3ce7de85b20ca3ed2d5bafbb927

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-win32.whl.

File metadata

  • Download URL: sentry_cli-2.38.0-py3-none-win32.whl
  • Upload date:
  • Size: 7.3 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for sentry_cli-2.38.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 f968b3df8ee9c92741ebb0a64d1340aa0e0258274169d355c069abd07ba64ab0
MD5 ef2a1d18d50b4815f978982b9a17adaf
BLAKE2b-256 f6dd84bf17f7fff402fd966c77852377e9b8aff0d29301f9eadf759c133f324f

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5a0d85574a21e538ec008b7c14ddc5061980e5147ace591f563382d8d0459e2b
MD5 cd61c5e54bd11e2f58155165fafdecfa
BLAKE2b-256 33c6152328b136c94210859e6a03b7e3f3e74ae0ea91b9df7c7e8803d31c71d2

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 03ae9522a842011798508b01c4b0e4e8128bd3697e2569839b670817a77aa772
MD5 7d277d043df83a62b1ea6ddf81282750
BLAKE2b-256 39d9dbf078d466f28e2eb8fcd294f812c12271f8dc6e685dfd0352ae1c54cfd3

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 ce427c883a7ca836ab8ed2d08c39dba90a1d7e4b97c58aa412ef404e310c5557
MD5 00ba29e126d82a5b07a3eb07b058e2b0
BLAKE2b-256 21a330d24a54d9bb68ffcdd6a0e47a612f650bfebc965380674318331d07a326

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d287e8588c5dc3c0cf0f4bae50ec3ec0e2b728eee59a62ffca00df4f12ac9474
MD5 b3dda2eb477355076d9581ae75d3be88
BLAKE2b-256 b51813e23e8878326e76621f586b628f46ecdac6ddeac3878c8a40443f4fd248

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 7707b842d3f72f04950dc74e953b2d69a508af5f842ac4c2df75b4d25b029265
MD5 543df27ac6465ca705f20d1fbc6462e2
BLAKE2b-256 e873af4d1f14865d8161c367c77c9def210d882e856dbc6e1ddae1808d2c8764

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59d5db396b7f6079e26543075423685bcc565782fdd6a124d698b4bc49a8f093
MD5 373a057c10a97a83aa155794a27ca295
BLAKE2b-256 6e1a372e1aa8d5c1fe3d675f3bc4aea328a7bd2cf6a440dff57387a06718d3ec

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for sentry_cli-2.38.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 327cb3805774e2f785ffc140ba508bd50c3bcfbccb6014640fe0ee7b6e5b9a40
MD5 c0589476aaaf5ca6287cfc29861dcbd7
BLAKE2b-256 05ba8a00d4c926ff60c0064e7600773797cc30126202239da1f0154cb03258c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page