Skip to content

Running Scans (CLI)

The Vygl CLI runs every scan engine locally and uploads only findings metadata. It works on a developer laptop, a CI runner, or any environment with Docker.

Terminal window
vygl scan [OPTIONS] [PATH]

Options must come before the path. The most common flags:

FlagPurpose
--scan-typesComma-separated list of engines (default: sast,sca,secrets,iac)
--fail-onSeverity threshold that exits non-zero (critical, high, medium, low)
--no-uploadRun engines locally without pushing results to the cloud
--nameProject name (use when there’s no git remote)
--project-idBind to an existing project explicitly
--branchOverride the auto-detected branch (useful in detached-HEAD CI)
--prPull/merge request number — enables PR comment posting
--api-urlOverride the API base URL (default: https://api.vygl.io)

Scan only secrets and dependencies, fail on high or above:

Terminal window
vygl scan --scan-types secrets,sca --fail-on high .

Local-only run (no upload):

Terminal window
vygl scan --no-upload .

CI run with explicit branch (detached HEAD):

Terminal window
vygl scan --branch main .

Scan a PR and post a comment:

Terminal window
vygl scan --fail-on high --pr 1234 .
CommandWhat it does
vygl auth set-key <KEY>Store an API key locally in ~/.vygl/credentials
vygl auth testVerify your key works and show the org it belongs to
CommandWhat it does
vygl project listList all projects in your organization
vygl results <SCAN_ID>View results from a previous scan