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 and install it in your PATH:
- 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
sudo install contrast /usr/local/bin/contrast
curl --proto '=https' --tlsv1.2 -fLo contrast https://github.com/edgelesssys/contrast/releases/latest/download/contrast-aarch64-darwin
sudo install contrast /usr/local/bin/contrast
note
If you download 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 to resolve this:
xattr -d com.apple.quarantine contrast