CLI Reference

larkx commands

Every CLI command in one place.

Use larkx <command> --help for inline help.
CommandDescription
larkx initInitialize .larkx/ and set up MCP + agent files
larkx indexParse files and build the graph (incremental by default)
larkx statsShow file counts, frameworks, and AI token estimates
larkx contextPrint the compact project map (levels 1-4, folder scoping)
larkx searchFind a function or class by name
larkx impactList files that import a target file
larkx deadcodeFind unreachable files and functions
larkx serveOpen the interactive visual graph in the browser
larkx mcpStart the MCP server (used by AI clients)
larkx setup-agentsRe-run the agent file creation wizard

Global flags

FlagEffect
-v, --versionPrint version and exit
-h, --helpPrint help