Update the Contrast CLI
MacOS or Linux, including WSL
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 upgradeon its own, Homebrew upgrades every outdated package on your machine, including the existing Contrast CLI if you have it installed.Run
contrast-cli --versionto 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.