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.0.4 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.

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

Uploaded Source

Built Distributions

sentry_cli-2.20.4-py3-none-win_amd64.whl (10.9 MB view details)

Uploaded Python 3 Windows x86-64

sentry_cli-2.20.4-py3-none-win32.whl (9.8 MB view details)

Uploaded Python 3 Windows x86

sentry_cli-2.20.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl (21.2 MB view details)

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

sentry_cli-2.20.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl (20.4 MB view details)

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

sentry_cli-2.20.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl (19.7 MB view details)

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

sentry_cli-2.20.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl (20.5 MB view details)

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

sentry_cli-2.20.4-py3-none-macosx_11_0_universal2.whl (27.5 MB view details)

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

sentry_cli-2.20.4-py3-none-macosx_11_0_arm64.whl (13.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.20.4-py3-none-macosx_10_15_x86_64.whl (14.4 MB view details)

Uploaded Python 3 macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: sentry_cli-2.20.4.tar.gz
  • Upload date:
  • Size: 181.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for sentry_cli-2.20.4.tar.gz
Algorithm Hash digest
SHA256 3ad28816fa5f5569ae9263cbada61a11d12311d1c1416a789f41c5438d2eb105
MD5 5ce02ca666dda241cdb0250af7a1d917
BLAKE2b-256 6c0eb277a1065e87a61cd5ca102b0438c74c0cf3c4de8235544ed1f2b8214279

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for sentry_cli-2.20.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 674f939b8f2ee687e257bf5db2370a6c1482f2675d7f7db45c41f41dc2b54ce5
MD5 9cf4432a5aa8066425a2fd803752539b
BLAKE2b-256 0c1a035759c512df8ecc6ecbf07e9a6192cabd01ef493477840ae86d2cf33287

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.4-py3-none-win32.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for sentry_cli-2.20.4-py3-none-win32.whl
Algorithm Hash digest
SHA256 d024ee285100eeb6502066551e5a278522331c18fb7fa36a62400981ffe5a34a
MD5 67c3d77cc27b8e8344e5f7609b2dbbc9
BLAKE2b-256 94d905f1e7ff81d01df05f732de2253d230d8ce6356688ee08ff40ac1bed7737

See more details on using hashes here.

File details

Details for the file sentry_cli-2.20.4-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.20.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7696ce60035aed3bfc2eb155633e85e7f6f25d91f0f406104a02f7b2a513bb6b
MD5 af9ce35f07435f077b3eef59370854da
BLAKE2b-256 c1ff1c539ce9eee1fb696d76dcb70c326787faea60b9ba336957d3a62dfdd7cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.20.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 01c7a4ac3555b013f0db52599130b17e86aba96d8c44906767bb5d14a9a4ba71
MD5 f553aec15fabfdc45380ddccadbce99c
BLAKE2b-256 2ee58f84cb309e6ccdefa6ac6f74849635c61142b84eab46688cdc90da8a6dd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.20.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 62f80ab31b39fc653aa921873dc8d094a4c815a80ec9dafe8e8703ef807f983d
MD5 ceb4e8d91a00bdd3f8a7dd763c4595a4
BLAKE2b-256 e9b64f2fd11cb0191e9ff4cf209967a11ac39b663dfb5e0749dcfdd393bfb6f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.20.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e3b76a01c779fd9af034d4a8b32445f1514ff76ac11407848cedfceb0849d3f8
MD5 24e7feacdca196d6727476b841a58ed7
BLAKE2b-256 3a1968450dbc8bce1ef8e7a1bc0d798aa0dd2ddde57d96c834d50b81aa58bb91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.4-py3-none-macosx_11_0_universal2.whl
  • Upload date:
  • Size: 27.5 MB
  • Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for sentry_cli-2.20.4-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 d0e5bcf28a898510df32cdf3b74a7d600655c577a45be5be15654cc5c567b13f
MD5 135fbee66b36b3aecaf0edbbf1729742
BLAKE2b-256 3970f728ba4850602a2d772f1461bad2c45e5a106f8787d59eaac1b133059266

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.4-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 13.1 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for sentry_cli-2.20.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1401b2126105fa20298fd6d0fb611c0af049ce557033a1764dda684f521cd231
MD5 d54d329f79f1396fe3753c96050beddc
BLAKE2b-256 40ce7cd4b7384bfc84413d9e016a3619bdda592e19ddf17536e28fdce74f218a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.4-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 14.4 MB
  • Tags: Python 3, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for sentry_cli-2.20.4-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 cc8a0927d678abee18cb518b92a3fdd5fb8875067869890a4818c37d8c28902e
MD5 95c0f24a6b5d21e23b6e5bcec93ae3f5
BLAKE2b-256 c6f38bd4aae517356af7ef5ae12119585b52c62def83684bcd06abe045330e43

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