Install CLI
This section provides instructions on how to install the Contrast CLI.
Applicability
Required for deploying with Contrast.
Prerequisites
How-to
Download the Contrast CLI from the latest release:
- Linux (x86_64)
- macOS (Apple Silicon)
curl --proto '=https' --tlsv1.2 -fLo contrast https://github.com/edgelesssys/contrast/releases/latest/download/contrast-x86_64-linux
curl --proto '=https' --tlsv1.2 -fLo contrast https://github.com/edgelesssys/contrast/releases/latest/download/contrast-aarch64-darwin
Verify the release
If you got the binary from another source, such as a mirror, check that it matches the release using the GitHub CLI:
contrast_release=$(gh release view --repo edgelesssys/contrast --json tagName -q .tagName)
gh release verify-asset "$contrast_release" contrast --repo edgelesssys/contrast
To also check that the binary was built from the released source, see Reproducible build.
Install the binary
note
If you downloaded the binary via a web browser instead of curl, macOS may show a warning
that the software can't be verified. Remove the quarantine attribute before installing the binary:
sudo xattr -d com.apple.quarantine contrast
Install the verified binary in your PATH:
sudo install contrast /usr/local/bin/contrast