Skip to main content

CLI Reference

The travsr binary is the single entry point for all Travsr functionality.

Global flags

FlagDefaultDescription
--repo <path>. (cwd)Path to the repository root
--db <path>.travsr/graph.dbOverride the graph database path
--log-level <level>infoerror | warn | info | debug | trace
--versionN/APrint version and exit
--helpN/APrint help and exit

Subcommands

CommandDescription
travsr initInstall git hook and run first full index
travsr daemonStart / stop / status the background daemon
travsr mcpStart the MCP server (stdio or SSE)
travsr askSearch for symbols in the graph
travsr graphPrint a text representation of the graph around a file
travsr reposList and manage indexed repositories
travsr langInstall and manage language analysis tools
travsr synonymManage query-time synonym pairs
travsr statusShow daemon status and graph statistics