Skip to main content
The Ragrails CLI is the terminal interface for building, querying, and maintaining a knowledge base. Use workflow commands when you want the shortest path: ingest, query, and chat. Use stage commands when you want JSON artifacts between steps that you can inspect, commit, diff, or hand off to another process.

Setup Wizard

Run ragrails with no subcommand to launch the setup wizard before using the CLI regularly.
The wizard writes .ragrails.toml in the current directory. CLI commands then inherit vector database, embedding, LLM, reranker, chunking, storage, retrieval, and chat defaults from that file. A flag always overrides .ragrails.toml for one run. If .ragrails.toml already exists, bare ragrails shows the current config and lets you edit, reset, or exit.
There is no ragrails setup subcommand. ragrails setup-url only installs the browser runtime used by website extraction.

Workflows

Pipeline

Start with the pipeline overview, or jump directly to a stage:

Command Index

Some SDK capabilities are not exposed as CLI flags: scrape DLQ retry, raw bytes document input, full API pagination/body config, and query rewriting in retrieve. Use SDK or REST API for those.