CLI Reference
Complete command-line interface reference for OmniDaemon.Overview
The OmniDaemon CLI provides a beautiful, enterprise-grade interface for managing agents, monitoring events, and debugging issues. Command Prefix:health- System health statusagent- Agent managementtask- Task operationsbus- Event bus monitoring (Redis Streams)metrics- Performance metricsstorage- Storage operationsconfig- Configuration management
Installation
Recommended: Using uv (Fast & Modern)
Alternative: Using pip
Global Options
Health Command
omnidaemon health
Check system health and status.
Usage:
--format TEXT- Output format:rich(default),json
RUNNING- Runner active, all systems healthyREADY- No runner, but event bus and storage healthyDEGRADED- One system unhealthyDOWN- Both event bus and storage unhealthy
- Health monitoring
- Kubernetes liveness probes
- Load balancer health checks
- CI/CD health gates
Agent Commands
omnidaemon agent list
List all registered agents.
Usage:
--format TEXT- Output format:tree(default),table,compact,json
omnidaemon agent get
Get detailed information about a specific agent.
Usage:
--topic, -t TEXT- Topic name (required)--name, -n TEXT- Agent name (required)--format TEXT- Output format:rich(default),json
omnidaemon agent delete
Delete an agent permanently.
Usage:
--topic, -t TEXT- Topic name (required)--name, -n TEXT- Agent name (required)--delete-group- Delete consumer group (default: True)--delete-dlq- Delete dead-letter queue (default: False)--yes, -y- Skip confirmation
omnidaemon agent unsubscribe
Temporarily pause an agent (can resume by restarting runner).
Usage:
--topic, -t TEXT- Topic name (required)--name, -n TEXT- Agent name (required)
Task Commands
omnidaemon task publish
Publish an event to a topic.
Usage:
--topic, -t TEXT- Topic name (required)--content, -c TEXT- Content JSON (required)--webhook TEXT- Webhook URL for result callback--reply-to TEXT- Topic to reply to--correlation-id TEXT- Correlation ID--tenant-id TEXT- Tenant ID
omnidaemon task get
Get result for a published task.
Usage:
--task-id TEXT- Task ID (required)--wait INTEGER- Wait time in seconds (default: 0)--format TEXT- Output format:rich(default),json
omnidaemon task list
List recent task results.
Usage:
--limit INTEGER- Max results (default: 100)--format TEXT- Output format:table(default),json
Event Bus Commands
(Only available whenEVENT_BUS_TYPE=redis_stream)
omnidaemon bus list
List all Redis streams.
Usage:
omnidaemon bus inspect
View recent messages in a stream.
Usage:
--stream, -s TEXT- Stream name (required)--limit, -n INTEGER- Number of messages (default: 10)
omnidaemon bus groups
List consumer groups for a stream.
Usage:
--stream, -s TEXT- Stream name (required)
omnidaemon bus dlq
Inspect dead-letter queue for a topic.
Usage:
--topic, -t TEXT- Topic name (required)--limit, -n INTEGER- Number of entries (default: 10)
omnidaemon bus stats
Get comprehensive event bus statistics.
Usage:
Metrics Command
omnidaemon metrics
View performance metrics for all agents.
Usage:
--topic, -t TEXT- Filter by topic--format TEXT- Output format:table(default),json
Storage Commands
omnidaemon storage health
Check storage health.
Usage:
--format TEXT- Output format:rich(default),json
omnidaemon storage clear-agents
Delete all agents from storage.
Usage:
--yes, -y- Skip confirmation
omnidaemon storage clear-results
Delete all task results from storage.
Usage:
--yes, -y- Skip confirmation
omnidaemon storage clear-metrics
Delete all metrics from storage.
Usage:
--yes, -y- Skip confirmation
omnidaemon storage clear-all
Delete all data from storage (agents, results, metrics, config).
Usage:
--yes, -y- Skip confirmation
Config Commands
omnidaemon config get
Get configuration value.
Usage:
omnidaemon config set
Set configuration value.
Usage:
omnidaemon config list
List all configuration values.
Usage:
JSON Output
All commands support--format json for scripting:
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid command/options |
| 130 | Interrupted (Ctrl+C) |
Environment Variables
The CLI respects these environment variables:Shell Completion
Enable tab completion for your shell:Scripting Examples
Health Check Script
Agent Monitoring Script
DLQ Check Script
Common Workflows
Deploy New Agent
Debug Failed Tasks
Maintenance
Troubleshooting
Command Not Found
Connection Errors
Permission Errors (Storage)
Further Reading
- SDK API - Programmatic access
- Monitoring Guide - Production monitoring
- Configuration Guide - Environment setup
Summary
Main Commands:--format json- JSON output for scripting--help- Show help--yes, -y- Skip confirmations
- 0 = Success
- 1 = Error
- 130 = Interrupted