Uninstall Contrast CLI
If you attached the agent to a running container with agent enable, run contrast-cli agent disable.
If you instrumented a Dockerfile with agent install, run contrast-cli agent uninstall. Rebuild the container afterward to remove the agent.
To revoke your sign-in and remove the stored credentials, run contrast-cli sign-out.
Remove the Contrast CLI.
On macOS or Linux, including WSL, run the following command:
brew uninstall contrastsecurity/tap/contrast-cli
On Windows, open Settings, go to Apps, then Installed apps, find Contrast CLI, and select Uninstall.
Uninstalling the Windows CLI does not remove a WSL sign-in, and the reverse. Each keeps its own.
Remove remaining folders
Uninstalling removes the program and leaves your settings and downloaded agent files behind. To remove those as well, delete these folders based on your operating system:
macOS:
~/Library/Application Support/contrast-cliand~/Library/Caches/contrast-cliLinux:
~/.config/contrast-cliand~/.cache/contrast-cliWindows:
%LOCALAPPDATA%\contrast-cli