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

Global Flags

These flags apply to every Lexa subcommand unless noted.

FlagDescription
--graph <path>Override the default .lexa/graph.lexa location for this invocation.
--no-graphRun without loading or persisting a graph snapshot.
--jsonEmit JSON instead of pretty text. Affects every subcommand.
--versionPrint the Lexa version and exit.

A note on --json

The JSON shape mirrors the per-subcommand text output — there is no separate "machine format" with extra fields. The MCP structuredContent envelope is also JSON, but it is opt-in (see Output Formats).

A note on --no-graph

Use --no-graph for ephemeral one-shot inspections on read-only filesystems or in CI when you do not want a graph to land in the project directory.

See also