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

Uploaded Source

Built Distributions

sentry_cli-2.38.2-py3-none-win_amd64.whl (8.8 MB view details)

Uploaded Python 3 Windows x86-64

sentry_cli-2.38.2-py3-none-win32.whl (7.5 MB view details)

Uploaded Python 3 Windows x86

sentry_cli-2.38.2-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.2-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.2-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.2-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.2-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.2-py3-none-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.38.2-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.2.tar.gz.

File metadata

  • Download URL: sentry_cli-2.38.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a18dbdf7558a373f4730f11d5aab4a28d27823eb6d5e58edceb70860d1572621
MD5 ed46b264d68c3db66ba725949e924f43
BLAKE2b-256 530ce301d943f2c591f088d32a4ee819adf1d86f889dcdf989c928d441bbbf36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c929d622407c93f91b042a87c1763fe30d8bf7b1bd53e896fcb43f2c9ea8a556
MD5 a5b57acef7c0005d543d45acfff3615a
BLAKE2b-256 d1feafda5581d64c633124cdb584ecb781d24a3f2eceb3dadc8fc42cfec30fe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.38.2-py3-none-win32.whl
  • Upload date:
  • Size: 7.5 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.2-py3-none-win32.whl
Algorithm Hash digest
SHA256 e531df0b825b4e0036452e619c45c2ee976ea699f77ac0760bda4ab3e74f10e1
MD5 308a5b8d44eb776b9c94ebf508c93850
BLAKE2b-256 84635726e314a63d127c8ab7ffc05e9fcbe33ba831efe87122be9529143cb4ef

See more details on using hashes here.

File details

Details for the file sentry_cli-2.38.2-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.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e7add04b357b9041a14fd4e38419837bdd1117785fa61b2b3d9786ba18f73082
MD5 e4a62ba1512216040cb0c58e3eb6373a
BLAKE2b-256 15a47bc66dd136a07af31cb8b732875a5837ab6ffde40f6d6abb6e7a23d59a62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 1f5b5ce3add7f37fefd74598e75204e7cbd3d1e34c812089154f87c7b7606d77
MD5 2cc822a0e6d90556f957ce4393a022d0
BLAKE2b-256 6aa911db68e3b4fcb3d741d26da2fb525339f56abb7057296ae705098862c063

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 af31f5bfd3b9abc3b29237674048614e54d812a36ac59ec56c54ae3311867269
MD5 4c1503b9f87f80d037297bddde4c8b51
BLAKE2b-256 b8c1ff3418a84b3ecc4b50f712d2bd29e62e2f3012f249d112ae481a6663ddd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 88e5f96ef4cdd2c45ef054c78656d93727f1b5e4e27b9c14eef2c792f9780526
MD5 da10bfec3fc77dbb29fa0374460540e0
BLAKE2b-256 c9d4647daa748b9a77ca80a0fb5e2c874abb57b5988c7df02bac013b3e72d88d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4ed2d16b6621b7d6800989faf900be1c86609621dec4a26b8758e7b59ed2a661
MD5 cc44c9029172ea5f6d97a8c20b1a8e99
BLAKE2b-256 4ae518eaf32fddf43143011e02f2426d01dd148ba76882c947a9f31e2895a4bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a774f47c0af11ffade918d0334f477b3b212f128e8c1a02b19b85a8d15ca5f4
MD5 2546b6c4cc818f1acfae061b1f77f1ae
BLAKE2b-256 357d366158586d175538f49e968f0cc47d1f7376bc3f40f6d5309f8410638492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.38.2-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 54130b95617b5473458ad266e0d98619302dd039a9191a360555265e3d9d3e67
MD5 b353011da3d07385770711f1379c78a4
BLAKE2b-256 b1c35df65d0cfa1b2622bb68799a5d409633a259c2c0cf68d3455f2491127fb8

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