Install the CLI

There are 3 options to install Contrast: - Option 1 : download from the latest artifacts: Contrast CLI - Option 2: Install from Contrast's tap with Homebrew by running the following commands.

  brew tap contrastsecurity/tap
  brew install contrast
  • Option 3:Install using npm or yarn.

    npm install --location=global @contrast/contrast

Once installed the Contrast CLI will need to store Auth Credentials locally. NOTE: They can also be run at each command. To store the credentials locally run this command.

   contrast auth
   --organization-id <your organization ID>
   --api-key <your API key>
   --authorization <your authorization header>
   --host <your host domain>

Helpful links: - Contrast CLI