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.
historyList recent runs and track node-level change history across runs, files, or entities.
gcClean up old runs, sweep orphaned files, and vacuum the Arrow IPC database.
mcpStart the Batho MCP server for AI agent integration.
installOne-command agent setup — install the skill pack and register the MCP server with every detected coding-agent client.
pluginsValidate, list, fingerprint, and retro-apply bsg-plugin.v2 custom rule plugins.
communitiesPost-build community operations — list the hierarchy and optionally LLM-label communities.
doctorReport plugin-host status, worker preload health, and plugin-set drift vs the built artifact.

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.