A command line utility to work with Sentry.
Project description
Official Sentry Command Line Interface
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file sentry_cli-2.38.1.tar.gz
.
File metadata
- Download URL: sentry_cli-2.38.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a5cbd9f7bed1db658f00371b971d9d816984e67e18e309515096f70141479ee |
|
MD5 | 9d10a10e58169ec5c8ce92f3cb8b2749 |
|
BLAKE2b-256 | 08c72b860f1777ce32c0687aac9058f45ce423980a92055d53f7851eb77e4009 |
File details
Details for the file sentry_cli-2.38.1-py3-none-win_amd64.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-win_amd64.whl
- Upload date:
- Size: 8.8 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 881cad97328615b7eb76ece3b1d9b5bf8c6c72c04a47c116e4186be0a88eff98 |
|
MD5 | 05e3cf31fbbdc5927c6234c81c15ddb9 |
|
BLAKE2b-256 | de803178a0c2756e77bf9e927b49e3c134d79c0079a0fda3da23eb0f1d93a285 |
File details
Details for the file sentry_cli-2.38.1-py3-none-win32.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bb02e577d0ad0aadbc42c4f25e1e102175046826f1a448ec5b335c0137f92d1 |
|
MD5 | c958f8261d646e9b33b247fab3717161 |
|
BLAKE2b-256 | e65e85c05b06d94e481492f25a08e2d7e3f7725e8317e72a293b6afe0d5653a0 |
File details
Details for the file sentry_cli-2.38.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_2_x86_64.whl
- Upload date:
- Size: 14.5 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1696b4b272181e651730445f322ee106966a3f72d6dd434115c7a24debbbc554 |
|
MD5 | e91312876985e4ee251393b42f9cf667 |
|
BLAKE2b-256 | 9b6a070f420e5b64be1be7048a0a119c1141ed46648cb80d5062a975b17c95d1 |
File details
Details for the file sentry_cli-2.38.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.musllinux_1_2_i686.whl
- Upload date:
- Size: 12.1 MB
- Tags: Python 3, manylinux: glibc 2.17+ i686, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54df6c73214c4f151e87804c8abc42cceb3614590f6e11ff0c31e8278892bdb7 |
|
MD5 | 15457c0e8e2d0beb8bf83a57224d160a |
|
BLAKE2b-256 | 399b30c255aa1c9f91c055ad0311b45b6de32f3a46aa582f09d80a4bc019dd8a |
File details
Details for the file sentry_cli-2.38.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_2_armv7l.whl
- Upload date:
- Size: 10.6 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARMv7l, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c11f867d975b6fdb8960333eff0b75324a3b304c4df5a6becb8117b3d7c4569 |
|
MD5 | 57da763c8b6f1f5b95a7ff24eb97b23c |
|
BLAKE2b-256 | f49ed0a45c124e91d9044364175647ce0723415dabe545135eb42f2a63fcca8b |
File details
Details for the file sentry_cli-2.38.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_2_aarch64.whl
- Upload date:
- Size: 11.4 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1be2300329dcf0c37d7e48adcdf7d79a8d97825f82840c99a9e72f24068d5fad |
|
MD5 | 445c76cd51cc6c5d0e1103bbeedfee2b |
|
BLAKE2b-256 | c9e32b100b9476376b7773b34f3208ce57a801c67425dc6cfb4dcb37e1c6a042 |
File details
Details for the file sentry_cli-2.38.1-py3-none-macosx_11_0_universal2.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-macosx_11_0_universal2.whl
- Upload date:
- Size: 16.8 MB
- Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f994c8d37017d31b9da4d4a076a0225a9cb122d7c0d9fbb565bc6776a3a8c3 |
|
MD5 | 2415227b3180bf2a5fb4176ad01e5719 |
|
BLAKE2b-256 | 2b0149ca292bf36e904761bd7b9eff114ce3f6ab35e3342057c10fd0fe3a3963 |
File details
Details for the file sentry_cli-2.38.1-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f87a403993273a00d4ebd5c1b7d4e024793f68ea48ec17340fdabf7123a98a0 |
|
MD5 | 6b36678d63e2e0df025dce198e7abf5f |
|
BLAKE2b-256 | 86a3491c5f823c704445bf3f749d10f75f190ef1753f1423c166b2cbbe89fe02 |
File details
Details for the file sentry_cli-2.38.1-py3-none-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: sentry_cli-2.38.1-py3-none-macosx_10_15_x86_64.whl
- Upload date:
- Size: 8.9 MB
- Tags: Python 3, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b704c910e4d28bd9518fbf59b9936812b034c165272c72e28cfc8e498ff255b4 |
|
MD5 | 212cd3f7afa9dfe8581d4bdc7981fd0c |
|
BLAKE2b-256 | 391a1c5a5cf0f1026be6e653be70c7b4eba230a0010a7c564f33a4e3101351d3 |