Skip to main content

Module cli

Module cli 

Source
Expand description

clap definitions for the top-level sqlite-graphrag binary. CLI argument structs and command surface (clap-based).

Defines Cli and all subcommand enums; contains no business logic.

Structs§

Cli
CodexModelsArgs
GAP-E2E-010 (v1.0.89): codex-models accepts --json as a no-op so agents that append --json to every subcommand never see clap errors. The handler in main.rs always emits JSON on stdout; this flag is accepted and ignored for parity with the rest of the CLI surface.

Enums§

Commands
EmbeddingBackendChoice
v1.0.93: embedding backend selector. Separate from --llm-backend which controls enrichment (entity extraction, body enrichment) via subprocess. auto tries OpenRouter if API key is available, falls back to LLM subprocess. openrouter requires API key (exit 78 if absent). llm forces subprocess (codex/claude/opencode) — legacy behaviour.
GraphExportFormat
LlmBackendChoice
v1.0.82 (GAP-003): backend LLM para embedding. Aceita auto (default — detecta codex ou claude no PATH), codex (força codex exec), claude (força claude -p), ou none (skip-a embedding; útil para testes).
MemoryType