IndraDB / documentation
CLI reference
Run indra commands by hand. Usually your agent runs them through the MCP server.
Install with cargo install indra_db. The default build includes local embeddings and sync.
Core commands
init- Create a new database.
indra initcreate- Record an entry. You can give it an ID.
indra create "Your content here" indra create "With ID" --id my-idsearch- Search by meaning. Set a limit for the number of results.
indra search "query" --limit 10list- List all entries.
indra listget- Read one entry. Replace <id> with its ID.
indra get <id>update- Change one entry. Replace <id> with its ID.
indra update <id> "new content"
Branching
branch- List branches. Give a name to create a branch.
indra branch # List indra branch experiment # Createcheckout- Switch to a branch.
indra checkout experimentdiff- Compare two branches or two commits.
indra diff main experiment indra diff abc123 def456log- Read the commit history.
indra log
Sync
login- Sign in to IndraDB.
indra loginremote / push / pull- Add a remote. Then send or receive changes. Replace username/repo with your remote.
indra remote add origin username/repo indra push origin indra pull origin
Read the branch concepts or theMCP server guide.