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 and some travsr embed subcommands take. 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 guard | Claude Code PreToolUse hook handler: redirect or deny a search the graph can answer |
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 ui | Browse the graph in a web browser, with the VS Code extension's pages |
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 |
travsr invariants | Check declared architecture rules against the graph, for CI |
travsr index | Index a directory of source files and emit a graph JSON, for CI and tooling |
One more exists and has no page of its own, because it is not part of normal
use. travsr hook-run is the entrypoint the git hooks call; you never invoke it
yourself.