CLI Reference
The travsr binary is the single entry point for all Travsr functionality.
Global flags
| Flag | Description |
|---|---|
--version, -V | Print version and exit |
--help, -h | Print help and exit |
That is the whole list. Everything else is per-subcommand, including --db,
which only travsr mcp takes. Commands that act on a repository resolve it from
the working directory rather than from a flag, so run them inside the repo you
mean.
To see the full surface, including every subcommand, run:
travsr ask --cmds
Subcommands
| Command | Description |
|---|---|
travsr init | Install the git hook and run the first full index |
travsr connect | Detect AI coding tools and wire them to this repo's MCP server |
travsr daemon | Start / stop / status the background daemon |
travsr mcp | Start the MCP server over stdio |
travsr serve | Start the SSE/HTTP MCP server for remote clients |
travsr ask | Ask a natural-language question about the codebase |
travsr explain | Show why ask ranked or skipped results, for tuning search |
travsr references | Enumerate every use site of a symbol |
travsr pattern | Graph-scoped textual search over a bounded file set |
travsr graph | Print the dependency graph around a symbol or file |
travsr repos | List and manage indexed repositories |
travsr lang | Set up and manage full cross-file analysis per language |
travsr synonym | Manage query-time synonym pairs |
travsr rerank | Manage the reranker model that reorders search results |
travsr embed | Manage embedding backends for semantic code search |
travsr config | Inspect and set layered configuration |
travsr status | Print index and graph status for this repo |
travsr fsck | Check graph integrity, optionally repairing it |
Two more exist and have no page of their own, because neither is part of normal
use. travsr index <dir> --output <file> indexes a directory and writes a graph
JSON, for CI and tooling. travsr hook-run is the entrypoint the git
post-commit hook calls; you never invoke it yourself.