Every TrinaxAI CLI command is a subcommand of theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TrinaxCode/TrinaxAI/llms.txt
Use this file to discover all available pages before exploring further.
trinaxai binary. Run trinaxai --help for a top-level summary or trinaxai <command> --help for per-command usage. Each command section below includes the full flag list extracted from the source.
trinaxai start) unless otherwise noted. Use trinaxai doctor to verify that services are healthy before running queries.trinaxai ask
trinaxai ask — one-shot question
trinaxai ask — one-shot question
| Flag | Default | Description |
|---|---|---|
prompt (positional) | — | The question or prompt text. Multiple words are joined into one string. |
--session <name> | default | Session name used to persist this exchange to ~/.local/share/trinaxai/sessions/<name>.jsonl. |
--collections <ids> | — | Comma-separated collection IDs to scope the RAG retrieval, e.g. --collections myproject,docs. |
trinaxai chat
trinaxai chat — interactive or single-shot chat
trinaxai chat — interactive or single-shot chat
--prompt, opens a full interactive REPL with multi-turn conversation history and slash commands. With --prompt, behaves like a richer version of ask with streaming output.Syntax| Flag | Default | Description |
|---|---|---|
--prompt <text> | — | Run a single prompt and exit instead of opening the REPL. |
--session <name> | default | Conversation session name. Messages are appended to the session log on disk. |
--collections <ids> | — | Comma-separated collection IDs to target for RAG retrieval. |
| Command | Description |
|---|---|
/help | Show all slash commands |
/exit or /quit | Exit the chat REPL |
/clear | Clear in-memory conversation history (session log is kept) |
/model [name] | Show the current model hint or set a new one for subsequent messages |
/index [path] | Index a folder directly from within chat (defaults to current directory) |
/status | Print local service status |
trinaxai index
trinaxai index — index a directory into RAG
trinaxai index — index a directory into RAG
| Flag | Default | Description |
|---|---|---|
path (positional) | — | Directory to index. Expanded to an absolute path automatically. |
--folder <path> | — | Legacy alias for the positional path argument. |
--collection <id> | default | Collection ID to store the indexed data in. |
--append | false | Append-only mode: add new files but do not remove chunks for deleted files. |
index.py from the TrinaxAI project root. Environment variables such as TRINAXAI_INDEX_BATCH_SIZE (from .env) apply automatically.Examplestrinaxai research
trinaxai research — multi-pass deep research
trinaxai research — multi-pass deep research
| Flag | Default | Description |
|---|---|---|
--query <text> | (required) | The research question. |
--collections <ids> | — | Comma-separated collection IDs to scope retrieval. |
--depth <1|2|3> | 2 | Number of research passes. Higher depth is more thorough but slower. |
trinaxai doctor
trinaxai doctor — system health check
trinaxai doctor — system health check
| Check | What it verifies |
|---|---|
Python package | CLI import works correctly |
Service manager | service_manager.py is present in the project root |
Ollama command | ollama is on $PATH |
Services | Reports running/stopped status via service_manager.py status |
RAG API | HTTP health endpoint (/health) is reachable |
Index built | At least one document has been indexed |
Projects | Number of indexed projects |
Collections | Names of the first five collections |
Usage stats | Total messages and estimated token usage |
Memory summary | Prints the AI-generated memory summary if one exists |
0 if the Python package and Service manager checks both pass, and 1 otherwise.Exampletrinaxai memory
trinaxai memory — manage persistent memory entries
trinaxai memory — manage persistent memory entries
| Subcommand | Description |
|---|---|
list | Display all stored memories in a table (id, text, tags, created) |
add | Add a new memory entry |
forget | Delete a memory by its ID or unique ID prefix |
refresh | Re-generate the AI memory summary from all current entries |
summary | Print the current AI-generated memory summary |
memory add| Flag | Description |
|---|---|
--text <text> | Memory text. If omitted, the CLI prompts interactively. |
--tags <tags> | Comma-separated tags for organisation, e.g. --tags auth,backend. |
memory forget| Flag | Description |
|---|---|
--memory-id <id> | Full UUID or a unique prefix. If omitted, the CLI prompts interactively. |
trinaxai collections
trinaxai collections — manage RAG knowledge collections
trinaxai collections — manage RAG knowledge collections
| Subcommand | Description |
|---|---|
list | Show all collections with their ID, name, and creation time |
create | Create a new collection |
delete | Permanently delete a collection and all its indexed data |
use | Set the active collection used by default for queries |
collections create| Flag | Description |
|---|---|
--name <name> | Display name for the collection. If omitted, the CLI prompts interactively. |
collections delete| Flag | Description |
|---|---|
--collection-id <id> | ID of the collection to delete. The default collection cannot be deleted. A confirmation prompt is shown before deletion. |
collections use| Flag | Description |
|---|---|
--collection-id <id> | Collection ID to activate. Saved to the local CLI config. |
trinaxai browse
trinaxai browse — browse indexed collections and files
trinaxai browse — browse indexed collections and files
| Subcommand | Description |
|---|---|
list-collections | Show all available collections |
list-files | List every indexed file in a collection with chunk count, size, and mtime |
show-chunks | Display the raw text chunks stored for a given file |
browse list-files| Flag | Default | Description |
|---|---|---|
--collection <id> | default | Collection to inspect. |
browse show-chunks| Flag | Default | Description |
|---|---|---|
--collection <id> | default | Collection containing the file. |
--file <path> | (required) | Relative file path as stored in the index. |
--limit <n> | 50 | Maximum number of chunks to display. |
trinaxai watch
trinaxai watch — file watcher daemon control
trinaxai watch — file watcher daemon control
| Subcommand | Description |
|---|---|
start | Start the watcher daemon |
stop | Stop the watcher daemon |
status | Show whether the watcher is running and how many events it has processed |
watch start| Flag | Description |
|---|---|
--paths <dir> [dir ...] | One or more directories to watch. Multiple values are space-separated. |
--collection <id> | Restrict auto-reindex to a single collection path. |
trinaxai export
trinaxai export — export a conversation session
trinaxai export — export a conversation session
| Flag | Default | Description |
|---|---|---|
--session <name> | default | Name of the session to export. Sessions are stored at ~/.local/share/trinaxai/sessions/<name>.jsonl. |
--format <fmt> | md | Output format. Currently only md (Markdown) is supported. |
--output <path> | ./trinaxai-<session>.md | File path for the exported output. If omitted, the file is written to the current working directory. |
trinaxai start
trinaxai start — start all services
trinaxai start — start all services
service_manager.py) so the services are also registered for auto-start.Syntaxservice_manager.py start with a 180-second timeout and streams service manager output directly to the terminal.Exampletrinaxai start wraps all three transparently.trinaxai stop
trinaxai stop — stop services
trinaxai stop — stop services
--all to also take down the PWA.Syntax| Flag | Default | Description |
|---|---|---|
--all | false | Also stop the PWA frontend (runs stop-all instead of stop-ai). |
-y / --yes | false | Skip the interactive confirmation prompt. |