Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Discovery

Find files and paths in the indexed project.

files [path]

Show indexed files, optionally filtered.

lexa files
lexa files apps/desktop --language typescript
lexa files --path-glob "**/*.{ts,tsx}" --max-lines 200
lexa files packages --min-lines 100 --max-results 20

path is treated as a project-relative prefixlexa files apps/desktop returns every file under apps/desktop/. Use list if you want only the immediate children.

FlagDescription
--path-globMatch a glob against the indexed path.
--languageRestrict to one of the supported languages.
--min-lines / --max-linesFilter by line count.
-m, --max-resultsCap the number of results (--max is an alias).

list [path]

Return only the immediate children of a directory — useful for navigating a tree without descending.

lexa list
lexa list apps/desktop

glob <pattern>

Match indexed paths against a glob pattern. Supports *, **, ?, and {a,b}.

lexa glob "**/*.rs"
lexa glob "apps/**/index.{ts,tsx}"

path-search <pattern>

Fuzzy path search. Useful when you only remember part of a path.

lexa path-search "termnl-sess"
lexa path-search "create-project-agent" --max 5
FlagDescription
-m, --max <N>Cap the number of results (default: 20).