Skip to content

CLI Reference

This page provides documentation for the command line tools.

cstools

CodeSecTools CLI.

Usage:

cstools [OPTIONS] COMMAND [ARGS]...

Subcommands

  • allsast: Run all available SAST tools together.
  • bearer: Bearer SAST
  • coverity: Coverity Static Analysis
  • cppcheck: Cppcheck
  • docker: Start the Docker environment for the specified target (current directory by default).
  • download: Download and install any missing resources that are available for download.
  • semgrepce: Semgrep Community Edition Engine
  • snykcode: Snyk Code
  • spotbugs: SpotBugs
  • status: Display the availability of SAST tools and datasets.

cstools allsast

Run all available SAST tools together.

Usage:

cstools allsast [OPTIONS] COMMAND [ARGS]...

Subcommands

  • analyze: Analyze a project using all availbale SAST tools.
  • benchmark: Benchmark a dataset using all SAST tools.
  • info: List used SAST tools.
  • list: List existing analysis results.
  • plot: Generate plot for results visualization (datasets are not supported).
  • report: Generate an HTML report

cstools allsast analyze

Analyze a project using all availbale SAST tools.

Usage:

cstools allsast analyze [OPTIONS] {LANG}

cstools allsast benchmark

Benchmark a dataset using all SAST tools.

Usage:

cstools allsast benchmark [OPTIONS] {DATASET}

cstools allsast info

List used SAST tools.

Usage:

cstools allsast info [OPTIONS]

cstools allsast list

List existing analysis results.

Usage:

cstools allsast list [OPTIONS]

cstools allsast plot

Generate plot for results visualization (datasets are not supported).

Usage:

cstools allsast plot [OPTIONS] {PROJECT}

cstools allsast report

Generate an HTML report

Usage:

cstools allsast report [OPTIONS] {PROJECT}

cstools bearer

Bearer SAST

Usage:

cstools bearer [OPTIONS] COMMAND [ARGS]...

Subcommands

  • install: List instruction to install missing requirements.

cstools bearer install

List instruction to install missing requirements.

Usage:

cstools bearer install [OPTIONS]

cstools coverity

Coverity Static Analysis

Usage:

cstools coverity [OPTIONS] COMMAND [ARGS]...

Subcommands

  • install: List instruction to install missing requirements.
  • list: List existing analysis results.
  • plot: Generate plot for results visualization.

cstools coverity install

List instruction to install missing requirements.

Usage:

cstools coverity install [OPTIONS]

cstools coverity list

List existing analysis results.

Usage:

cstools coverity list [OPTIONS]

cstools coverity plot

Generate plot for results visualization.

Usage:

cstools coverity plot [OPTIONS] {RESULT}

cstools cppcheck

Cppcheck

Usage:

cstools cppcheck [OPTIONS] COMMAND [ARGS]...

Subcommands

  • install: List instruction to install missing requirements.
  • list: List existing analysis results.
  • plot: Generate plot for results visualization.

cstools cppcheck install

List instruction to install missing requirements.

Usage:

cstools cppcheck install [OPTIONS]

cstools cppcheck list

List existing analysis results.

Usage:

cstools cppcheck list [OPTIONS]

cstools cppcheck plot

Generate plot for results visualization.

Usage:

cstools cppcheck plot [OPTIONS] {RESULT}

cstools docker

Start the Docker environment for the specified target (current directory by default).

Usage:

cstools docker [OPTIONS]

cstools download

Download and install any missing resources that are available for download.

Usage:

cstools download [OPTIONS] {NAME}

cstools semgrepce

Semgrep Community Edition Engine

Usage:

cstools semgrepce [OPTIONS] COMMAND [ARGS]...

Subcommands

  • install: List instruction to install missing requirements.

cstools semgrepce install

List instruction to install missing requirements.

Usage:

cstools semgrepce install [OPTIONS]

cstools snykcode

Snyk Code

Usage:

cstools snykcode [OPTIONS] COMMAND [ARGS]...

Subcommands

  • install: List instruction to install missing requirements.
  • list: List existing analysis results.
  • plot: Generate plot for results visualization.

cstools snykcode install

List instruction to install missing requirements.

Usage:

cstools snykcode install [OPTIONS]

cstools snykcode list

List existing analysis results.

Usage:

cstools snykcode list [OPTIONS]

cstools snykcode plot

Generate plot for results visualization.

Usage:

cstools snykcode plot [OPTIONS] {RESULT}

cstools spotbugs

SpotBugs

Usage:

cstools spotbugs [OPTIONS] COMMAND [ARGS]...

Subcommands

  • install: List instruction to install missing requirements.
  • list: List existing analysis results.
  • plot: Generate plot for results visualization.

cstools spotbugs install

List instruction to install missing requirements.

Usage:

cstools spotbugs install [OPTIONS]

cstools spotbugs list

List existing analysis results.

Usage:

cstools spotbugs list [OPTIONS]

cstools spotbugs plot

Generate plot for results visualization.

Usage:

cstools spotbugs plot [OPTIONS] {RESULT}

cstools status

Display the availability of SAST tools and datasets.

Usage:

cstools status [OPTIONS]