Skip to main content

Contrast CLI

Use the Contrast command line interface (CLI) to analyze libraries at the earliest stage of the software development life cycle (SDLC).

The Contrast CLI runs on Node.js but can be used on any application to provide composition analysis capabilities at the command line. For details about the supported platforms and languages, see the Contrast CLI supported languages page.

With this composition analysis you can:

  • identify vulnerable libraries

  • fail a build based on CVE severity

  • view a dependency tree to understand the dependencies between libraries and where vulnerabilities have been introduced

  • identify node.js libraries at risk for dependency confusion

  • generate SBOM

Contrast does this by supplementing existing runtime instrumentation from Contrast agents, with data from pre-compile analysis (typically not available at runtime).

Install the Contrast CLI so you can register new applications and begin analyzing your libraries during the development phase using the command line options.