Install Contrast CLI
Install Contrast CLI before running a scan.
Note
Contrast CLI V2.0 is available via installation with npm only.
With Homebrew
Install from Contrast's tap with Homebrew by running the following commands.
brew tap contrastsecurity/tap brew install contrast
With NPM/YARN
Note
Currently, only Node.js 16+ is supported.
Install using npm or yarn @contrast/contrast
.
For CLI V2.0, use this command:
npm install --location=global @contrast/contrast@2.0.0
For CLI V1.0, use this command:
npm install --location=global @contrast/contrast@1
With Binaries
Go to artifacts.
Download the latest package.
You must allow execute permissions on the file depending on your OS.
Once installed, continue by running the Contrast CLI.