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

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

Another option is to use the environment variable SENTRYCLI_CDNURL.

SENTRYCLI_CDNURL=https://mymirror.local/path npm install @sentry/cli

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

Uploaded Source

Built Distributions

sentry_cli-2.14.3-py3-none-win_amd64.whl (10.7 MB view details)

Uploaded Python 3 Windows x86-64

sentry_cli-2.14.3-py3-none-win32.whl (9.5 MB view details)

Uploaded Python 3 Windows x86

sentry_cli-2.14.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl (20.9 MB view details)

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

sentry_cli-2.14.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl (20.1 MB view details)

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

sentry_cli-2.14.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl (19.3 MB view details)

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

sentry_cli-2.14.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl (20.2 MB view details)

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

sentry_cli-2.14.3-py3-none-macosx_11_0_universal2.whl (26.7 MB view details)

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

sentry_cli-2.14.3-py3-none-macosx_11_0_arm64.whl (12.7 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sentry_cli-2.14.3-py3-none-macosx_10_15_x86_64.whl (14.0 MB view details)

Uploaded Python 3 macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: sentry_cli-2.14.3.tar.gz
  • Upload date:
  • Size: 166.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.14.3.tar.gz
Algorithm Hash digest
SHA256 e9c36a4e6332ec15a31d5509f8358dc884cb7a56f8886a9a02008f03c7d0c079
MD5 dc65e371b5c441e8d9e856241d8aa79d
BLAKE2b-256 74c3e1e5274556b5a5fb386a2f96254b46715547e5570b867e13d4030c0405cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.14.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 10.7 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.14.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ec3dcd0afa90e0b66511012fff849f06386a36aabb04cce9912e47668a1331e2
MD5 621cc54c047e4f15e054c39a794c6d3f
BLAKE2b-256 e508ce17d344428640bf257c111d177ea664113dfb1960b36c275832fec27bea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.14.3-py3-none-win32.whl
  • Upload date:
  • Size: 9.5 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.14.3-py3-none-win32.whl
Algorithm Hash digest
SHA256 38b58646031a1265ab16ed573d31358b81fa58630b4d01d99e598966513236de
MD5 a227e721c1dcf2b7fa6fedb72dd0e810
BLAKE2b-256 a73761dfbdd0079f2e427108800a641ff73c5c30ae2542cd0ce057827734702d

See more details on using hashes here.

File details

Details for the file sentry_cli-2.14.3-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.14.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 87d1be79cb283cd38442a74b763c6df90d45d9684d6ae06429f0fba114d78f41
MD5 f1bfbde325ede9982d6b2e981a32b471
BLAKE2b-256 d08072ee18848bcc344ab5b3c4247e1c1940d6731be75b82a56bdde8ff652cab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.14.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d57f09efadaedb786ee6c4f8667e5b91c38bd7f3fa78dc222ad3dd042b8d3170
MD5 8a1fd83feec39bd209e7dc0241bfa846
BLAKE2b-256 958b2ca5b184bf5bb47bfb6733c5125984c41a3747e480960c9281e00da419b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.14.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 e55caf017516997829b5e5bd6d1bd644cdfd74507f5085530b57656b24a195a3
MD5 653c1b4628e8ad3391b6f066496b7891
BLAKE2b-256 56a90ebc6592a4de26088a7eac55523c34dcd4109d04f0c174f982d687c0313f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentry_cli-2.14.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5cc6def9f46b0763ee836dd747b41a32bad76e0d84a4dcdd247172085b031f57
MD5 b9b9ee54fbd80cb89481cccab2f85e03
BLAKE2b-256 9ed148893b5e78e745c06bc67826ee3394e253cfc071f57dcb0aca924b81534a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.14.3-py3-none-macosx_11_0_universal2.whl
  • Upload date:
  • Size: 26.7 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.14.3-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 0b7cf8bba42218036a086f04e61a3e4602e82f7002dc6da2131e93f421abb2a3
MD5 5e270960a1ac3955506d3dcaeb9d3aec
BLAKE2b-256 f91e61a637cebd76fb1d23c061e7536b2a5b5fb49e95e1b6c311d063574e7527

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.14.3-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 12.7 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.14.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea0354fe82b38cbe458dd7b920403a5eae652edd90eb5906cd18fc30a17af0c1
MD5 97197f0931f2d75fa026ad9497c70fc3
BLAKE2b-256 0b589125a25208e9b3d702b102f97e8c64ef548cba686547b8afb9b5d3f1db45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_cli-2.14.3-py3-none-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 14.0 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.14.3-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 70e5474de0668f67a2b231f77a6bc0d16f11c7889a7d7bf182a4ac4949b8efdb
MD5 d77edaa01d40b7d9d17b73dfe78fe5ab
BLAKE2b-256 274848483fae7803ea13cc5d279327e3757466fdd1a853601d2e93aedc53b1e6

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