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

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

sentry_cli-2.20.5-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.5-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.5-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.5-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.5-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.5-py3-none-macosx_11_0_arm64.whl (13.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.20.5-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.5.tar.gz.

File metadata

  • Download URL: sentry_cli-2.20.5.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.5.tar.gz
Algorithm Hash digest
SHA256 a375d880896faaaf16b3e4bd22a8a63963f983bc864895e9091c2eb0ebcd8044
MD5 1a9893bf6f574d5ce406599ea5264018
BLAKE2b-256 a75111c3c04bf37988976c35d64ed18a187bbf16328bf008828abd807601d1b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.5-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.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 59cd6715c48dd729b8dd11f49bdb8347fb91d986e0f4dcce7438f2d352c9a771
MD5 bb91b0d41da72221e8895285b9f54006
BLAKE2b-256 a900f84d56e16cdf621c93c0ff8011c405f65983e1fde00bd956f6418a3ebc2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.5-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.5-py3-none-win32.whl
Algorithm Hash digest
SHA256 47175f5bcc0d645f956b0c177a0171aa8971e22f021714a0b061f0d45355135c
MD5 862527be2bad8e283bf4468b2649fd28
BLAKE2b-256 2a7982855f3e555703eff5e4cb3714cbe13df8af9a541e88d4d2905dc419437e

See more details on using hashes here.

File details

Details for the file sentry_cli-2.20.5-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.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a362c6dadcf1d90716753e8d15ce447e8a184796a2d3e68109482e433c6223df
MD5 5d8574b7eb61943a7882202b35fc5d46
BLAKE2b-256 47cd7bda4c03df2a680b2e27d6ce77792397c6206209490558be0630b7e07ef7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.20.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 6b562fc93a642ca3291c1c39edf0159786fac3f6086a3cec2c73106f1c032a7d
MD5 02dcf84abc0186725108d0d7ac0527d3
BLAKE2b-256 e782b20691f267034e58e4b693c757577f8483a80c12fc7cdb931d22dff90299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.20.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 c4f72a9d3619fed46e50d08b44db60db14db58557471f787d62f08b178b76d84
MD5 056d54ffd48ba6818a7fda964cbc9329
BLAKE2b-256 8dd9ce45de5f5c07bc75d216d85af778bcfc316d559ee656450390de5d4b99f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.20.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2468b9fb8af3f634f645801da1758316302e87782cba8d7699dc17842bbb1d8c
MD5 7fee6dcacab1ef71f4d5ba5a27ee0598
BLAKE2b-256 4313526c36020d5b31356e42236b6ae31e2aedaf2ed853023ac6e1d0770fefa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.5-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.5-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 a5bf26d68580f627de908b61fb89246bb62aca27a1fd2b403014cda9b806a5d3
MD5 b3aa2c67ee5bd50283f7e550d1f14ae8
BLAKE2b-256 c4c229757a216befa4fc0004212e12b606d8c4d7ef388cc4b1bebed2fccc4308

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.5-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.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d86255b563fa27b79018962308da84a722bbab6dbc5980e5a73cbd01490d32e2
MD5 bbb65c308e172f962f274c48705a0d05
BLAKE2b-256 d15d62a78fc12cfec48030784804fe9f748dd011a44a6f4c3283f735cfcd2e69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.20.5-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.5-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 cba3ddbacea4c439bb3f61cb29639c3742cd32530be3ad12838eb686335634ae
MD5 18518d7d91f92d0c11d9351fa1828125
BLAKE2b-256 ee1acee55a9d63c216bbaef42dc70774e3ed8e0a64d70064910f90c3da82cfa4

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