Skip to main content

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:
Main Commands:
  • health - System health status
  • agent - Agent management
  • task - Task operations
  • bus - Event bus monitoring (Redis Streams)
  • metrics - Performance metrics
  • storage - Storage operations
  • config - Configuration management

Installation

Alternative: Using pip


Global Options

Example:

Health Command

omnidaemon health

Check system health and status. Usage:
Options:
  • --format TEXT - Output format: rich (default), json
Output (rich):
Output (json):
Status Values:
  • RUNNING - Runner active, all systems healthy
  • READY - No runner, but event bus and storage healthy
  • DEGRADED - One system unhealthy
  • DOWN - Both event bus and storage unhealthy
Use Cases:
  • Health monitoring
  • Kubernetes liveness probes
  • Load balancer health checks
  • CI/CD health gates

Agent Commands

omnidaemon agent list

List all registered agents. Usage:
Options:
  • --format TEXT - Output format: tree (default), table, compact, json
Output (tree):
Output (table):
Output (json):

omnidaemon agent get

Get detailed information about a specific agent. Usage:
Options:
  • --topic, -t TEXT - Topic name (required)
  • --name, -n TEXT - Agent name (required)
  • --format TEXT - Output format: rich (default), json
Example:
Output:

omnidaemon agent delete

Delete an agent permanently. Usage:
Options:
  • --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
Example:
Output:

omnidaemon agent unsubscribe

Temporarily pause an agent (can resume by restarting runner). Usage:
Options:
  • --topic, -t TEXT - Topic name (required)
  • --name, -n TEXT - Agent name (required)
Example:
Output:

Task Commands

omnidaemon task publish

Publish an event to a topic. Usage:
Options:
  • --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
Example:
Output:

omnidaemon task get

Get result for a published task. Usage:
Options:
  • --task-id TEXT - Task ID (required)
  • --wait INTEGER - Wait time in seconds (default: 0)
  • --format TEXT - Output format: rich (default), json
Example:
Output (found):
Output (not found):

omnidaemon task list

List recent task results. Usage:
Options:
  • --limit INTEGER - Max results (default: 100)
  • --format TEXT - Output format: table (default), json
Example:
Output:

Event Bus Commands

(Only available when EVENT_BUS_TYPE=redis_stream)

omnidaemon bus list

List all Redis streams. Usage:
Output:

omnidaemon bus inspect

View recent messages in a stream. Usage:
Options:
  • --stream, -s TEXT - Stream name (required)
  • --limit, -n INTEGER - Number of messages (default: 10)
Example:
Output:

omnidaemon bus groups

List consumer groups for a stream. Usage:
Options:
  • --stream, -s TEXT - Stream name (required)
Example:
Output:

omnidaemon bus dlq

Inspect dead-letter queue for a topic. Usage:
Options:
  • --topic, -t TEXT - Topic name (required)
  • --limit, -n INTEGER - Number of entries (default: 10)
Example:
Output:

omnidaemon bus stats

Get comprehensive event bus statistics. Usage:
Output:

Metrics Command

omnidaemon metrics

View performance metrics for all agents. Usage:
Options:
  • --topic, -t TEXT - Filter by topic
  • --format TEXT - Output format: table (default), json
Output (table):
Output (filtered):
Output (json):

Storage Commands

omnidaemon storage health

Check storage health. Usage:
Options:
  • --format TEXT - Output format: rich (default), json
Output (Redis):

omnidaemon storage clear-agents

Delete all agents from storage. Usage:
Options:
  • --yes, -y - Skip confirmation
Example:
Output:

omnidaemon storage clear-results

Delete all task results from storage. Usage:
Options:
  • --yes, -y - Skip confirmation
Example:
Output:

omnidaemon storage clear-metrics

Delete all metrics from storage. Usage:
Options:
  • --yes, -y - Skip confirmation
Example:
Output:

omnidaemon storage clear-all

Delete all data from storage (agents, results, metrics, config). Usage:
Options:
  • --yes, -y - Skip confirmation
Example:
Output:

Config Commands

omnidaemon config get

Get configuration value. Usage:
Example:
Output:

omnidaemon config set

Set configuration value. Usage:
Example:
Output:

omnidaemon config list

List all configuration values. Usage:
Output:

JSON Output

All commands support --format json for scripting:

Exit Codes


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


Summary

Main Commands:
Common Options:
  • --format json - JSON output for scripting
  • --help - Show help
  • --yes, -y - Skip confirmations
Exit Codes:
  • 0 = Success
  • 1 = Error
  • 130 = Interrupted
The CLI provides a beautiful, production-ready interface! 🎨✨