• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H02-Nov-2021-363297

.vscode/H02-Nov-2021-9794

bin/H02-Nov-2021-2014

cargo-crates/H03-May-2022-3,020,2412,352,123

js/H03-May-2022-23684

scripts/H03-May-2022-6040

src/H02-Nov-2021-16,22713,386

tests/H02-Nov-2021-561496

.craft.ymlH A D02-Nov-20212.7 KiB7675

.dockerignoreH A D02-Nov-202166 86

.editorconfigH A D02-Nov-2021211 1612

.eslintrcH A D02-Nov-2021155 98

.gitignoreH A D02-Nov-202193 119

.npmignoreH A D02-Nov-2021151 1512

.prettierrcH A D02-Nov-2021102 76

CHANGELOG.mdH A D02-Nov-202133.3 KiB1,035662

Cargo.lockH A D02-Nov-202165.1 KiB2,6532,372

Cargo.tomlH A D03-May-20222.3 KiB9282

DockerfileH A D02-Nov-2021946 3023

LICENSEH A D02-Nov-20211.5 KiB2822

MakefileH A D02-Nov-2021380 2217

README.mdH A D02-Nov-20213.3 KiB10168

build.rsH A D02-Nov-20211.1 KiB3124

docker-entrypoint.shH A D02-Nov-2021197 116

package.jsonH A D02-Nov-20211.7 KiB6261

yarn.lockH A D02-Nov-2021183.1 KiB4,4163,820

README.md

1<p align="center">
2    <img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
3    <br />
4</p>
5
6# Official Sentry Command Line Interface
7
8[![Build Status](https://github.com/getsentry/sentry-cli/workflows/CI/badge.svg?branch=master)](https://github.com/getsentry/sentry-cli/actions?query=workflow%3ACI)
9[![GitHub release](https://img.shields.io/github/release/getsentry/sentry-cli.svg)](https://github.com/getsentry/sentry-cli/releases/latest)
10[![npm version](https://img.shields.io/npm/v/@sentry/cli.svg)](https://www.npmjs.com/package/@sentry/cli)
11[![license](https://img.shields.io/github/license/getsentry/sentry-cli.svg)](https://github.com/getsentry/sentry-cli/blob/master/LICENSE)
12
13This is a Sentry command line client for some generic tasks. Right now this is
14primarily used to upload debug symbols to Sentry if you are not using the
15fastlane tools.
16
17* Downloads can be found under
18  [Releases](https://github.com/getsentry/sentry-cli/releases/)
19* Documentation can be found [here](https://docs.sentry.io/hosted/learn/cli/)
20
21## Installation
22
23The recommended way to install is with everybody's favorite curl to bash:
24
25    curl -sL https://sentry.io/get-cli/ | bash
26
27### Node
28
29Additionally you can also install this binary via npm:
30
31    npm install @sentry/cli
32
33When installing globally, make sure to have set
34[correct permissions on the global node_modules directory](https://docs.npmjs.com/getting-started/fixing-npm-permissions).
35If this is not possible in your environment or still produces an EACCESS error,
36install as root:
37
38    sudo npm install -g @sentry/cli --unsafe-perm
39
40By default, this package will download sentry-cli from the CDN managed by [Fastly](https://www.fastly.com/).
41To use a custom CDN, set the npm config property `sentrycli_cdnurl`. The downloader will append
42`"/<version>/sentry-cli-<dist>"`.
43
44```sh
45npm install @sentry/cli --sentrycli_cdnurl=https://mymirror.local/path
46```
47
48Or add property into your `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html)
49
50```rc
51sentrycli_cdnurl=https://mymirror.local/path
52```
53
54Another option is to use the environment variable `SENTRYCLI_CDNURL`.
55
56```sh
57SENTRYCLI_CDNURL=https://mymirror.local/path npm install @sentry/cli
58```
59
60If you're installing the CLI with NPM from behind a proxy, the install script will
61use either NPM's configured HTTPS proxy server, or the value from your `HTTPS_PROXY`
62environment variable.
63
64### Homebrew
65
66A homebrew recipe is provided in the `getsentry/tools` tap:
67
68    brew install getsentry/tools/sentry-cli
69
70### Docker
71
72As of version _1.25.0_, there is an official Docker image that comes with
73`sentry-cli` preinstalled. If you prefer a specific version, specify it as tag.
74The latest development version is published under the `edge` tag. In production,
75we recommend you to use the `latest` tag. To use it, run:
76
77```sh
78docker pull getsentry/sentry-cli
79docker run --rm -v $(pwd):/work getsentry/sentry-cli --help
80```
81
82## Compiling
83
84In case you want to compile this yourself, you need to install at minimum the
85following dependencies:
86
87* Rust stable and Cargo
88* Make, CMake and a C compiler
89
90Use cargo to compile:
91
92    $ cargo build
93
94Also, there is a Dockerfile that builds an Alpine-based Docker image with
95`sentry-cli` in the PATH. To build and use it, run:
96
97```sh
98docker build -t sentry-cli .
99docker run --rm -v $(pwd):/work sentry-cli --help
100```
101