|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| .github/workflows/ | H | 02-Nov-2021 | - | 363 | 297 |
| .vscode/ | H | 02-Nov-2021 | - | 97 | 94 |
| bin/ | H | 02-Nov-2021 | - | 20 | 14 |
| cargo-crates/ | H | 03-May-2022 | - | 3,020,241 | 2,352,123 |
| js/ | H | 03-May-2022 | - | 236 | 84 |
| scripts/ | H | 03-May-2022 | - | 60 | 40 |
| src/ | H | 02-Nov-2021 | - | 16,227 | 13,386 |
| tests/ | H | 02-Nov-2021 | - | 561 | 496 |
| .craft.yml | H A D | 02-Nov-2021 | 2.7 KiB | 76 | 75 |
| .dockerignore | H A D | 02-Nov-2021 | 66 | 8 | 6 |
| .editorconfig | H A D | 02-Nov-2021 | 211 | 16 | 12 |
| .eslintrc | H A D | 02-Nov-2021 | 155 | 9 | 8 |
| .gitignore | H A D | 02-Nov-2021 | 93 | 11 | 9 |
| .npmignore | H A D | 02-Nov-2021 | 151 | 15 | 12 |
| .prettierrc | H A D | 02-Nov-2021 | 102 | 7 | 6 |
| CHANGELOG.md | H A D | 02-Nov-2021 | 33.3 KiB | 1,035 | 662 |
| Cargo.lock | H A D | 02-Nov-2021 | 65.1 KiB | 2,653 | 2,372 |
| Cargo.toml | H A D | 03-May-2022 | 2.3 KiB | 92 | 82 |
| Dockerfile | H A D | 02-Nov-2021 | 946 | 30 | 23 |
| LICENSE | H A D | 02-Nov-2021 | 1.5 KiB | 28 | 22 |
| Makefile | H A D | 02-Nov-2021 | 380 | 22 | 17 |
| README.md | H A D | 02-Nov-2021 | 3.3 KiB | 101 | 68 |
| build.rs | H A D | 02-Nov-2021 | 1.1 KiB | 31 | 24 |
| docker-entrypoint.sh | H A D | 02-Nov-2021 | 197 | 11 | 6 |
| package.json | H A D | 02-Nov-2021 | 1.7 KiB | 62 | 61 |
| yarn.lock | H A D | 02-Nov-2021 | 183.1 KiB | 4,416 | 3,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