Complete reference for all BACO subcommands, organized by category.
Scaffolds a baco.toml config file for a target project. Detects languages and suggests an appropriate preset.
baco init /path/to/projectOptions:
- Takes a project path as argument
- Creates
baco.tomlin the target directory - Auto-detects languages and suggests preset
Validates the entire scan environment before running. Checks config parsing, preset resolution, LLM phase availability, semgrep installation, Python3, Joern (if CPG enabled), output directory writability, and disk space.
baco doctor # Human-readable report
baco doctor --json # JSON output for CI/CDExecutes the full 23-phase pipeline on a target project.
baco scan --config /path/to/baco.tomlOptions:
--config <path>— Path to TOML config file (required)--dry-run— Print cost/usage estimate and exit without scanning--target <path>— Override the target path from config--force— Force a full rescan, ignoring cached results--diff <revspec>— Limit report to files changed in git revspec (e.g.,main...HEAD)-q— Suppress non-essential output (quiet mode)
Example:
# Estimate cost before running
baco scan --config my.toml --dry-run
# Scan with custom target override
baco scan --config my.toml --target /path/to/code
# Scan only changed files in a PR
baco scan --config my.toml --diff origin/main...HEADContinues a scan from a saved checkpoint after interruption or crash.
baco resume --checkpoint baco-output/checkpoint.jsonOptions:
--checkpoint <path>— Path to checkpoint.json file (required)
Generates formatted reports from existing findings data.
baco report --input findings.json --format html [--config config.toml]Options:
--input <path>— Path to findings.json (required)--format <type>— Output format:html,markdown,json(required)--config <path>— Apply config settings (e.g., evidence gate) to standalone report
Example:
baco report --input findings.json --format html
baco report --input findings.json --format markdownRuns verification checks on existing findings.
baco verify --input findings.jsonOptions:
--input <path>— Path to findings.json (required)
Measures scanner accuracy against ground truth fixtures.
baco eval --target /path/to/fixtures --ground-truth eval/oracles/target.jsonOptions:
--target <path>— Path to test fixtures directory (required)--ground-truth <path>— Path to oracle JSON file with expected results (required)
Output: Precision, recall, and F1 score metrics.
Displays all available configuration presets.
baco preset listOutput: List of preset names and descriptions.