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

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

sentry_cli-2.36.6-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.36.6-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.36.6-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.36.6-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.36.6-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.36.6-py3-none-macosx_11_0_arm64.whl (8.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.36.6-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.36.6.tar.gz.

File metadata

  • Download URL: sentry_cli-2.36.6.tar.gz
  • Upload date:
  • Size: 201.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.36.6.tar.gz
Algorithm Hash digest
SHA256 7c43359a3fc1a6b98a9be22cf5756c411c0808d80f898f7d0f42483378c728cb
MD5 e817979707af81f9917a5cab99f60288
BLAKE2b-256 a0ccf51f67529f30d9c7853885135ec9deebc4d54d3e424b55f86c5e3f1a4452

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f2e34514b2ed942a4e3d6b15493c766df39d27039ed5079a24a46d63afa9f8c7
MD5 b87409dd34dfde18ffb962e9aa79b39d
BLAKE2b-256 2f9b720c997118caeb2627b7e5f4301ce174a2661d052af7a77f69b76d6e8d26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.36.6-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.36.6-py3-none-win32.whl
Algorithm Hash digest
SHA256 e89e6b756bd3c038edddb59bf11eb2e35939b6697b5f08e9830242fc499ec6d1
MD5 40d0adccf42fcda7fc2bf426532ecffa
BLAKE2b-256 9c2db25ac0b823956a71833e64dc194d7ac237ac17d815db96aeeda7b9fc4fec

See more details on using hashes here.

File details

Details for the file sentry_cli-2.36.6-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.36.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f714d71efbb452c1d0d2e013f34c22c216731ab6a29ffea7075be73f09833d88
MD5 64d1a6bb82b3bfdf446e06616fef0362
BLAKE2b-256 e71ea22edf0f04147aacc0da7ef1bf75ef939e7f32e860026b1dc940959b7aa4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c6590d58031f03e4a954399fe7db3a0ac13f3c6f3e19d6f5eae0fa40f676d0da
MD5 af9eb67ae5e21ef2c37a394505417fe3
BLAKE2b-256 3bdcd7ec46eab47bcdf10b5222bfca69bbc5744b3fddc23bf1df02bbe0ad595b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 5adb5b4c5c6d390b28f997c09791b5a2a149967e6b8fdd312cc38bcc44d1cc08
MD5 15ff5e52a18c903bbf52c8073e5c8128
BLAKE2b-256 1ad6a245445abc724b902b80a512e15663e37ae3948dc27a75353cf1985145fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e05b755bbc97dfd930aa620e34a6776be785ee801e04f6eae499707439305d92
MD5 d413f2d23fbbb922b3189ad1793447ca
BLAKE2b-256 da53fbfef0708f2d88d7fd328cc7ce9d704e02a5f2c5d7636789e116827a5bd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 5d1296701912be33b30721d96f942901d1e25077ed265afe4fdcaf9a6bf7b9af
MD5 34e0a5c418cc51568a6b8c0e0f52c18e
BLAKE2b-256 064566cfcf0612b309e50b22768e1dda41acf3a8cbb0780c02ff71ec847325d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f984ce5556ec591843b90836c000028eaebddb082a47592024f8423694e963b0
MD5 0590f5fb9bca7f15d7a1bd710ec71a5f
BLAKE2b-256 419359a43aa5c3224ba7e1750b501c15934ab66882f15b50821b5739f8aaaab1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.36.6-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a84ea7f513e2ce608634c64e6bd1e7dd9b34c376168691a80309bbc2447d1165
MD5 2d5432e5ef907ae6afc648c132918c64
BLAKE2b-256 ec3c8bf9d415515c4145b8bd2bfc47bfe22ac36b75b78a89b4854c57160176ad

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