Skip to content

Commit d977082

Browse files
committed
Merge branch 'main' into jdk-card-style
2 parents c0b7df6 + 4f8f778 commit d977082

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/install.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,24 @@ And for installs on CI where shell config modification isn't appropriate, add
105105
curl -s "https://get.sdkman.io?rcupdate=false" | bash
106106
```
107107

108+
## CI Mode
109+
110+
For automated environments like CI/CD pipelines, SDKMAN! offers a dedicated CI mode
111+
that optimizes the installation for non-interactive use:
112+
113+
```shell
114+
curl -s "https://get.sdkman.io?ci=true" | bash
115+
```
116+
117+
CI mode automatically:
118+
- Answers all prompts (sets `sdkman_auto_answer=true`)
119+
- Disables colored output for cleaner logs (sets `sdkman_colour_enable=false`)
120+
- Turns off the self-update feature to prevent unexpected updates (sets `sdkman_selfupdate_feature=false`)
121+
122+
You can combine this with other parameters as needed:
123+
124+
```shell
125+
curl -s "https://get.sdkman.io?ci=true&rcupdate=false" | bash
126+
```
127+
108128
That's all there is to it! Now let's dive into [Usage](/usage).

0 commit comments

Comments
 (0)