Skip to content

Commit 6e1ac75

Browse files
authored
docs(cli): Add version specifier to get-cli script (#4991)
* docs(cli): Add version specifier to get-cli script
1 parent 4aed5bd commit 6e1ac75

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/docs/product/cli/installation.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ If you are on OS X or Linux, you can use the automated downloader which will fet
2020
curl -sL https://sentry.io/get-cli/ | bash
2121
```
2222

23+
We do however, encourage you to pin the specific version of the CLI, so your builds are always reproducible.
24+
To do that, you can use the exact same method, with an additional version specifier:
25+
26+
```bash
27+
curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION="{{ apps.version('sentry-cli') }}" bash }}
28+
```
29+
2330
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.
2431

2532
To verify it’s installed correctly you can bring up the help:
@@ -102,7 +109,6 @@ Options listed below control how `sentry-cli` install script behaves, when insta
102109

103110
: If set, the script will change where it writes its output. Possible values are `stdout` and `stderr`. Defaults to `stdout`.
104111

105-
106112
## Installation via Homebrew
107113

108114
If you are on OS X, you can install `sentry-cli` via homebrew:

src/gatsby/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import queries from "./utils/algolia";
2+
import AppRegistry from "./utils/appRegistry";
23
import PackageRegistry from "./utils/packageRegistry";
34
import resolveOpenAPI from "./utils/resolveOpenAPI";
45

56
const packages = new PackageRegistry();
7+
const apps = new AppRegistry();
68

79
const activeEnv =
810
process.env.GATSBY_ENV || process.env.NODE_ENV || "development";
@@ -12,7 +14,9 @@ const root = `${__dirname}/../..`;
1214
process.env.DISABLE_THUMBNAILS = process.env.DISABLE_THUMBNAILS || "0";
1315
if (process.env.DISABLE_THUMBNAILS === "1") {
1416
console.log("🐇 Thumbnail generation is disabled.");
15-
console.log("WARN: DISABLE_THUMBNAILS should no longer yield significant build time boosts with `yarn develop`. Let @markus know if it does.");
17+
console.log(
18+
"WARN: DISABLE_THUMBNAILS should no longer yield significant build time boosts with `yarn develop`. Let @markus know if it does."
19+
);
1620
}
1721

1822
const getPlugins = () => {
@@ -25,6 +29,7 @@ const getPlugins = () => {
2529
options: {
2630
scope: {
2731
packages,
32+
apps,
2833
},
2934
excludeExpr: ["default"],
3035
},

0 commit comments

Comments
 (0)