Skip to main content

CLI reference

The following table lists the Veracode CLI commands:

CommandDescription
cacheClears the cache for all Veracode CLI commands.
configureConfigures API credentials for the Veracode CLI.
dynamicPerforms Veracode Dynamic Analysis for a web application or REST API and outputs the results. It also records login sequences and crawl scripts for DAST (dynamic record, experimental).
fixGenerates code fixes and, optionally, apply them to flaws in an application source file.
helpLists the available commands.
packagePackages project code for Veracode Static Analysis.
package discoverDetects toolchains in your project and identifies any changes or upgrades needed to create scannable artifacts. This command currently supports MSBuild (.NET), Maven (Java), and Gradle (Java) build tools.
policyDownloads a security policy as a file.
repository addAdds the repositories that you can access from source control management (SCM) systems to inventory Excel files.
repository reportGenerates a report of all developers who have contributed to a repository in the last 90 days.
sbomGenerates a software bill of materials (SBOM) of an image, archive, repository, or directory.
scanPerforms Veracode Container Security scans to generate vulnerability findings and policy results for secrets, images, archives, repositories, or directories.
staticPerforms Static Application Security Testing (SAST) scans.
versionReturns the Veracode CLI version.

You must run each command in the filepath where the Veracode CLI is installed.

If you installed it in the working directory, use this format:

./veracode [command]

If you installed it in a different location, use this format:

./veracode <path>/veracode [command]