Skip to main content

Update the Contrast CLI

MacOS or Linux, including WSL

  1. Run the following commands to refresh Homebrew’s formula list and upgrade the Contrast CLI:

    brew update
    brew upgrade contrastsecurity/tap/contrast-cli

    Important

    Always include the formula name. If you run brew upgrade on its own, Homebrew upgrades every outdated package on your machine, including the existing Contrast CLI if you have it installed.

  2. Run contrast-cli --version to confirm the new version. You will remain signed in to Contrast.

Windows

Download and run the CLI installer with the following two commands:

Invoke-WebRequest https://download.cli.contrastsecurity.com/ContrastCli.msi -OutFile ContrastCli.msi
Start-Process msiexec.exe -ArgumentList '/i ContrastCli.msi /quiet' -Wait

The new version replaces the old one and you remain signed in to Contrast.