How to install the Command Line Tools (CLI).
- From the Coverity on Polaris navigation menu, click Downloads.
-
Download the Coverity on Polaris command line interface tool by clicking the link
provided for your platform.
For example, if you are using Linux, download polaris-linux64.zipNote: Both tools for MacOs (zip or pkg) install the same software. The pkg file is recommended but the zip file is available to provide backward compatibility for customers who require it, but can cause a compatibility issue with macOS 10.15 or higher. To fix, see Coverity on Polaris CLI Compatibility on MacOS Versions 10.15 and Higher.
-
Open downloaded file by file type:
File Type Action zip Unzip file. For Linux, Windows, MacOS (for backward compatibility).
pkg Double-click the file to open the Apple Installer and follow the prompts. MacOS only.
In the following Linux example, the downloaded file is placed in the user's home directory, in a subdirectory named Applications.
$ cd ~/Applications/ $ unzip ~/Downloads/polaris-linux64-1.5.4342.zip - Add the bin directory you just unzipped to your $PATH environment variable.
-
Verify that the Coverity on Polaris command line tool is installed. In your terminal
window, enter:
polaris --versionA version number is returned.
$ polaris --version 1.5.4399 -
If the version shown is not the version you downloaded, move the Coverity on Polaris
binary file to another location and run the binary from that location. This ensures that
you are running the more recent version that you downloaded and installed.
Note: This can occur if you have a previous Coverity on Polaris installation in your $PATH. Replace the older installation directory path with the newly downloaded package directory path.