GMT
--:--:--
GET
---:--:--:--
CLI
0.1.10
MCP
0.2.2

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 init
create
Record an entry. You can give it an ID.
indra create "Your content here"
indra create "With ID" --id my-id
search
Search by meaning. Set a limit for the number of results.
indra search "query" --limit 10
list
List all entries.
indra list
get
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         # Create
checkout
Switch to a branch.
indra checkout experiment
diff
Compare two branches or two commits.
indra diff main experiment
indra diff abc123 def456
log
Read the commit history.
indra log

Sync

login
Sign in to IndraDB.
indra login
remote / 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.