Skip to content

Commit 42a426c

Browse files
committed
docs: add macOS install instructions for CLI
Add a tabbed platform selector (Linux/macOS) to the CLI install page. The macOS tab downloads the aarch64-darwin binary and includes a note about the Gatekeeper quarantine workaround for browser downloads. Signed-off-by: Spyros Seimenis <sse@edgeless.systems>
1 parent 19f5c37 commit 42a426c

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/docs/howto/install-cli.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,33 @@ Required for deploying with Contrast.
1212

1313
## How-to
1414

15-
Download the Contrast CLI from the latest release:
15+
Download the Contrast CLI from the latest release and install it in your PATH:
16+
17+
<Tabs queryString="platform">
18+
<TabItem value="linux" label="Linux (x86_64)">
1619

1720
```bash
18-
curl --proto '=https' --tlsv1.2 -fLo contrast https://github.com/edgelesssys/contrast/releases/latest/download/contrast
21+
curl --proto '=https' --tlsv1.2 -fLo contrast https://github.com/edgelesssys/contrast/releases/latest/download/contrast-x86_64-linux
22+
sudo install contrast /usr/local/bin/contrast
1923
```
2024

21-
After that, install the Contrast CLI in your PATH, e.g.:
25+
</TabItem>
26+
<TabItem value="macos" label="macOS (Apple Silicon)">
2227

2328
```bash
29+
curl --proto '=https' --tlsv1.2 -fLo contrast https://github.com/edgelesssys/contrast/releases/latest/download/contrast-aarch64-darwin
2430
sudo install contrast /usr/local/bin/contrast
2531
```
32+
33+
:::note
34+
If you download the binary via a web browser instead of `curl`, macOS may show a warning
35+
that the software can't be verified. Remove the quarantine attribute to resolve this:
36+
37+
```bash
38+
xattr -d com.apple.quarantine contrast
39+
```
40+
41+
:::
42+
43+
</TabItem>
44+
</Tabs>

0 commit comments

Comments
 (0)