Skip to main content

CLI Reference

# Show all commands
batho --help

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

Command Matrix

CommandPurpose
indexBuild/update graph + BSG artifacts for a repo
statsShow current index metadata and health summary
snapshotsList stored snapshots
diff-snapshotsDiff two snapshots
patchApply incremental updates from scan/diff/files
patchesList patch operations
patch-infoShow patch operation details
patch-chainShow chain of patches for a snapshot
apply-patchApply patch by diff file or patch id
cherry-pickApply a patch to another snapshot
syncSync pending artifacts to configured cloud endpoint
hooksGit client-side hook management (install/remove/run)
invalidateClear index file cache
cacheAST cache management (stats, invalidate, clear)
storagePersistent artifact registry tools (backfill, verify, cleanup, stats, rebuild-indexes, compact)
queryQuery persisted entity/relationship indexes
dashboardLaunch the interactive web dashboard
bsgRender BSG outputs (compressed, full, hierarchical)

Global Logging Flags

FlagDefaultDescription
--log-levelfrom configOverride logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
-q, --quietfrom configSuppress non-error CLI output and log events below ERROR
--log-jsonoffForce JSON log output (useful in CI)
--log-filefrom configWrite logs to the specified file path