Installation
The Maestro CLI is included with the Maestro desktop application. Access it via:The CLI reads agent configurations from the Maestro desktop app’s storage. Ensure you’ve created and configured agents in the desktop app before using CLI commands.
Key Features
Batch Playbook Execution
Run playbooks headlessly with full automation support
Agent Messaging
Send messages to agents and get JSON responses
JSONL Output
Machine-readable output for scripting and parsing
Session Management
List agents, groups, playbooks, and sessions
Quick Start
List All Agents
Run a Playbook
Send Message to Agent
Command Categories
List Commands
Query agents, groups, playbooks, and sessions:Show Commands
Detailed information about specific resources:Playbook Execution
Run playbooks with various options:Output JSONL events for scripting
Preview execution without making changes
Skip writing history entries
Wait for agent to become available if busy
Show detailed debug information
Show full prompts sent to agents
Send Command
Direct agent messaging for one-off tasks:Resume existing session for multi-turn conversations
Clean Commands
Maintenance operations:Output Formats
All commands support two output modes:Human-Readable (Default)
Colorful, formatted terminal output:JSON/JSONL (Scripting)
Machine-parseable structured data:Use
--json flag on any command to get structured output suitable for parsing with jq, scripts, or other tools.Agent ID Resolution
All commands support partial ID matching:Exit Codes
The CLI uses standard exit codes:0- Success1- Error (check stderr for details)
Next Steps
CLI Commands
Complete reference for all commands and options
Automation Patterns
Workflows and patterns for automated agent orchestration
Scripting Guide
Parse JSONL output and integrate with your tools
Playbooks
Learn about Auto Run playbooks and batch execution