Initialize a Project

Coverity on Polaris

Version
latest
The setup command creates a configuration file for the Coverity on Polaris CLI tool.

The command line tool uses a configuration file to control what analysis is performed and how it is performed. If you haven't run Coverity on Polaris on your project, the file doesn't exist yet. Coverity on Polaris will create the file for you when you run the setup command or when you run analysis for the first time.

Here's how to create the configuration file by using the setup command.

  1. Go to the root directory of your project.
  2. Generate a configuration file.
    $ polaris setup
  3. Enter your server URL when Polaris asks.

    For example, if your organization is myorg, enter the URL as follows.

    Please enter the server URL: https://myorg.cop.blackduck.com
  4. Paste in the authorization token when asked.

You now have a configuration file in the root directory of your project. You can proceed with the analysis directly, or you can edit the file to customize how the analysis happens.