Skip to main content

asymptote scan

Scan code for security vulnerabilities and policy violations.
asymptote scan [path] [flags]

Usage

Scan the current directory:
asymptote scan
Scan a specific path:
asymptote scan ./src
$ asymptote scan ./src

Scanning ./src...

 Scanned 142 files

Results
─────────────────────────────────────────────────────

 Severity  Rule                    File              Line
─────────────────────────────────────────────────────────────
 HIGH      hardcoded-secret        src/config.ts     23
 MEDIUM    sql-injection           src/db/query.ts   45
 LOW       console-log             src/utils.ts      12

Found 3 issues (1 high, 1 medium, 1 low)

View full report: https://asymptotelabs.ai/scans/scan-abc123

Flags

FlagTypeDescription
--path <path>stringPath to scan (default: current directory)
--rules <rules>string[]Specific rules to check
--exclude <patterns>string[]Glob patterns to exclude
--severity <level>stringMinimum severity to report (low, medium, high, critical)
--fixboolAutomatically fix issues where possible
--format <format>stringOutput format (text, json, sarif)

Examples

Filter by severity

Only show high and critical issues:
asymptote scan --severity high

Exclude patterns

Exclude test files and node_modules:
asymptote scan --exclude "**/*.test.ts" --exclude "**/node_modules/**"

Output as JSON

asymptote scan --format json > results.json

SARIF output for CI/CD

asymptote scan --format sarif > results.sarif

Auto-fix issues

asymptote scan --fix
Not all issues can be auto-fixed. The CLI will report which issues were fixed and which require manual intervention.

Exit Codes

CodeMeaning
0No issues found
1Issues found
2Error during scan

Next: Watch mode

Enable continuous scanning with watch mode.