Skip to main content

CLI Reference

# Show all commands
batho --help

# Show command-specific help
batho <command> --help

Command Matrix​

CommandPurpose
buildBuild a complete code graph, BSG map, and baseline snapshot for a repository.
patchDetect changes natively and apply incremental updates to an existing database.
exportExport BSG artifacts as JSON views or package them into a transport ZIP bundle.
loadUnpack a transport ZIP bundle (.batho file) into the target repository's artifact directory.
fixVerify structural consistency and automatically repair database integrity issues.
diffTrack granular node evolution and print node-level diff history across runs, files, or entities.
gcClean up old runs, sweep orphaned files, and vacuum the Arrow IPC database.

Global CLI Flags​

The following flags are shared across all batho subcommands:

FlagDefaultDescription
--root PATH.Repository root directory to scan or target.
--verbosefalseEnable verbose debug logging to standard error.
-h, --help-Show the help message for batho or a specific subcommand.