Skip to Content
CLI ReferenceOverview

CLI Overview

Every rag-forge command at a glance.

RAG-Forge’s CLI is organized around pipeline stages. Most projects need only a handful of commands to get going: init, index, query, audit. The rest are there when you need them.

Project lifecycle

CommandPurpose
initScaffold a new RAG-Forge project from a template
addAdd an optional feature module as editable source code (guardrails, caching, reranking, and more)
parsePreview document extraction without indexing
chunkPreview chunking output and stats without indexing
indexEmbed chunks and write to the vector store
queryRun a retrieval + generation query against the indexed pipeline
inspectInspect a specific indexed chunk by ID

Evaluation and quality

CommandPurpose
auditRun evaluation against telemetry or a golden set and score against RMM
assessOne-shot assessment of an existing pipeline
goldenManage the golden question/answer set
driftDetect retrieval drift against a baseline
reportGenerate a pipeline health HTML report

Operations

CommandPurpose
costTrack LLM and embedding spend
cacheInspect the semantic cache
guardrailsRun guardrail tests and PII scans
serveRun the MCP server
n8nExport a project as an n8n workflow