CLI Reference
larkx commands
Every CLI command in one place.
Use
larkx <command> --help for inline help.| Command | Description |
|---|---|
larkx init | Initialize .larkx/ and set up MCP + agent files |
larkx index | Parse files and build the graph (incremental by default) |
larkx stats | Show file counts, frameworks, and AI token estimates |
larkx context | Print the compact project map (levels 1-4, folder scoping) |
larkx search | Find a function or class by name |
larkx impact | List files that import a target file |
larkx deadcode | Find unreachable files and functions |
larkx serve | Open the interactive visual graph in the browser |
larkx mcp | Start the MCP server (used by AI clients) |
larkx setup-agents | Re-run the agent file creation wizard |
Global flags
| Flag | Effect |
|---|---|
-v, --version | Print version and exit |
-h, --help | Print help |