Gathering detailed insights and metrics for @sentry/cli
Gathering detailed insights and metrics for @sentry/cli
Gathering detailed insights and metrics for @sentry/cli
Gathering detailed insights and metrics for @sentry/cli
npm install @sentry/cli
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
911 Stars
2,300 Commits
223 Forks
65 Watching
49 Branches
348 Contributors
Updated on 28 Nov 2024
Rust (93.05%)
JavaScript (5.5%)
Python (0.73%)
Shell (0.56%)
Dockerfile (0.11%)
Makefile (0.04%)
Java (0.01%)
Kotlin (0.01%)
Cumulative downloads
Total Downloads
Last day
0.6%
845,855
Compared to previous day
Last week
3.1%
4,240,319
Compared to previous week
Last month
10.7%
17,941,990
Compared to previous month
Last year
45%
180,533,369
Compared to previous year
6
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.
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
New in 2.14.3: sentry-cli
can also be installed using pip
:
1pip install sentry-cli
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>"
.
1npm install @sentry/cli --sentrycli_cdnurl=https://mymirror.local/path
Or add property into your .npmrc
file (https://www.npmjs.org/doc/files/npmrc.html)
1sentrycli_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.
A homebrew recipe is provided in the getsentry/tools
tap:
brew install getsentry/tools/sentry-cli
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:
1docker pull getsentry/sentry-cli 2docker 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:
1docker 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.
To update sentry-cli to the latest version run:
1sentry-cli update
In case you want to compile this yourself, you need to install at minimum the following dependencies:
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:
1docker build -t sentry-cli . 2docker run --rm -v $(pwd):/work sentry-cli --help
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 24 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
binaries present in source code
Details
Reason
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@sentry/cli-linux-x64
The linux x64 distribution of the Sentry CLI binary.
@sentry/cli-darwin
The darwin distribution of the Sentry CLI binary.
@sentry/cli-linux-arm64
The linux arm64 distribution of the Sentry CLI binary.
@sentry/cli-linux-arm
The linux arm distribution of the Sentry CLI binary.