Skip to main content

Install Contrast CLI

Use these procedures to install Contrast CLI.

With Homebrew

Install from the Contrast tap with Homebrew by running the following commands.

brew tap contrastsecurity/tap
brew install contrast

With NPM/YARN

Note

Currently, only Node.js 20.18.3+ is supported.

Install using npm or yarn @contrast/contrast.

Use this command:

npm install --location=global @contrast/contrast@latest

With Binaries

  • Go to artifacts. If you prefer to automate using the latest version of the CLI, point to latest-version.txt.

  • Download the latest package.

  • You must allow execute permissions on the file depending on your OS.

Once installed, continue by authenticating your account.