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.37.0.tar.gz (199.6 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows x86-64

sentry_cli-2.37.0-py3-none-win32.whl (7.4 MB view details)

Uploaded Python 3 Windows x86

sentry_cli-2.37.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.37.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.37.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.37.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.37.0-py3-none-macosx_11_0_universal2.whl (17.2 MB view details)

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

sentry_cli-2.37.0-py3-none-macosx_11_0_arm64.whl (8.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.37.0-py3-none-macosx_10_15_x86_64.whl (9.1 MB view details)

Uploaded Python 3 macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: sentry_cli-2.37.0.tar.gz
  • Upload date:
  • Size: 199.6 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.37.0.tar.gz
Algorithm Hash digest
SHA256 d8cf9a2fabb11fb4e56d94ef5334b6689f2b2537b7fb08a32bfa06d5febd27df
MD5 7ab876895b47a7794384659f6fa6c9f2
BLAKE2b-256 38048a269355451505ade6b8f5fdf65b28db4a9938444474652781c1f7610d0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 05c1f64d92423f2f827cf088eea1eff0e880adc8e059673d1b27011c9770d362
MD5 adc929a667169f8764ba03989bbc3056
BLAKE2b-256 999a86631907a665e591b7fda8b9d026c7e5ff59988497a8c167fa5e35992600

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.37.0-py3-none-win32.whl
  • Upload date:
  • Size: 7.4 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.37.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 b2cfaa90e7938e3f64442653426e5f8b21e9c6d73281752c3954e45974fe73b9
MD5 c612342e929eed25fff9e0031629efdf
BLAKE2b-256 792174b7bf23449b65fca22c9c29eecd70da64a63b9012fa733d0e90fe9afae4

See more details on using hashes here.

File details

Details for the file sentry_cli-2.37.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.37.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ee235c8e0063a4eebd6913f24b642d134dab62b0ef941a442cdb39413964923d
MD5 a3deb7d2299d32ab4e87afc953eec085
BLAKE2b-256 84114dbb5e6defa035b2ceddd9b6fa0c30e7408f181804b391f21ee295dc23ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 20e77ab247104e8df91b9098a4bac39a2bec71bb6cc0b8deb7fa217615278cfc
MD5 3bbdfcdaebdbbe772399c9e67dc26fd3
BLAKE2b-256 a061365e24333b58fe24a218f049dafc83d7c5c872cdd06d4e000dccfb0f1930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 0dbbaa00e1ce088e42089a1a5a00af58c2fef881d7895577aa3f237ebccd9338
MD5 d7bc5adc037e0d340558b324258173a2
BLAKE2b-256 e672ab983359acf98f1efcacc0a0ea100bb77fe5bfadadb16374400b0cfb65aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a46ba1aab83c2fa9e724dd1a3c89208c2d5ec7d058d885f42a57f3814b736991
MD5 174dc281cad92a9fac1ebcfb30480edb
BLAKE2b-256 928b67baf9e2d24448e17233ef1ca49a66db79c7490b976f1e25ceeb3c30abe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f3ff2e3f23efb46682ea6fd1c8f5091de6a702eaf319b87fc0b01c30ff840c45
MD5 07cd2056c4cc5c0f1a9ba20260c405ad
BLAKE2b-256 972554ef679d93824d28f65ce57db204cb63301590933fd56b0bf50f01aaa62a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e829a88dfd5763233f1624ae23abcbd02d1e8849b867f7e746846d8a9b85a00
MD5 802660c660cb113793ce180eb2c45751
BLAKE2b-256 a8df97d531dedd75aef2df3c35a9f36e464b54e6ad9ceb8057f1aabc9984553e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.37.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ddcbbfe8f7a3fda1305244bf89ee082c484ae84dffc0ac308af8c1e754b46ea3
MD5 152d0137ccb72964696718559e845b91
BLAKE2b-256 8e0dd8a8566a02ec72572753b7ec6df70294f01b87a4081068957d205449b6fe

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