CLI reference
The darix CLI manages entity types and entities. Install from @durable-streams/darix-cli.
npm install -g @durable-streams/darix-cliEnvironment variables
| Variable | Default | Purpose |
|---|---|---|
DARIX_URL | http://localhost:4437 | Server URL |
DARIX_IDENTITY | user@hostname | Sender identity for messages |
Commands
darix types
List registered entity types.
darix typesdarix types inspect <name>
Show entity type details. Outputs JSON.
darix types inspect chatdarix types delete <name>
Delete an entity type registration.
darix types delete chatdarix spawn <url-path> [--args <json>]
Spawn an entity. URL path format: /<type>/<id>.
darix spawn /chat/my-convo
darix spawn /chat/my-convo --args '{"topic": "AI safety"}'| Option | Description |
|---|---|
--args <json> | Spawn arguments as JSON object |
darix send <url> <message...> [--type <msg-type>] [--json]
Send a message to an entity. By default, wraps the message string as { text: "..." }. Use --json to send raw JSON.
darix send /chat/my-convo 'Hello!'
darix send /chat/my-convo '{"custom": "payload"}' --json
darix send /chat/my-convo 'alert' --type warning| Option | Description |
|---|---|
--type <msg-type> | Set the message type field |
--json | Parse message argument as JSON instead of wrapping as { text } |
darix observe <url> [--from <offset>]
Stream entity events in real-time. Requires an interactive terminal.
darix observe /chat/my-convo
darix observe /chat/my-convo --from 0| Option | Description |
|---|---|
--from <offset> | Start streaming from this offset |
darix inspect <url>
Show entity details. Outputs JSON.
darix inspect /chat/my-convodarix ps [--type <type>] [--status <status>] [--parent <url>]
List entities with optional filters.
darix ps
darix ps --type chat --status running
darix ps --parent /manager/my-manager| Option | Description |
|---|---|
--type <type> | Filter by entity type |
--status <status> | Filter by status |
--parent <url> | Filter by parent entity URL |
Output shows URL, STATUS, CREATED, and LAST ACTIVE columns with human-readable relative timestamps. Results are sorted by most recently active first.
darix kill <url>
Delete an entity.
darix kill /chat/my-convodarix completion [action]
Set up shell completions. Without arguments, prints setup instructions.
darix completion # Show setup instructions
darix completion install # Auto-install into your shell init fileManual setup (add to your shell init file):
# Bash (~/.bashrc) or Zsh (~/.zshrc)
eval "$(darix --completion)"
# Fish (~/.config/fish/config.fish)
darix --completion-fish | sourceCompletions provide tab-completion for commands, flags, entity types, and entity URLs.