CLI Reference Overview
Colony provides a comprehensive command-line interface for managing multi-agent systems.
Command Structure
colony [COMMAND] [SUBCOMMAND] [OPTIONS]
Available Commands
Setup & Management
colony init- Initialize a new colonycolony start- Start all agentscolony stop- Stop agentscolony destroy- Destroy colony and cleanup
Monitoring
colony status- Show agent statuscolony health- System health checkcolony tui- Interactive TUI dashboardcolony logs- View agent logscolony attach- Attach to tmux session
Agent Templates
colony template list- List templatescolony template show- Show template detailscolony template install- Install built-in templatecolony template builtin- List built-in templates
Plugins
colony plugin list- List pluginscolony plugin show- Show plugin detailscolony plugin enable- Enable a plugincolony plugin disable- Disable a plugin
Workflows
colony workflow list- List workflowscolony workflow show- Show workflow detailscolony workflow run- Run a workflowcolony workflow status- Check run statuscolony workflow history- View run historycolony workflow cancel- Cancel a run
State Management
colony state task- Manage taskscolony state workflow- Manage workflow statecolony state memory- Manage shared memorycolony state pull- Pull from remotecolony state push- Push to remotecolony state sync- Full sync
Communication
colony broadcast- Broadcast message to all agentscolony messages list- List agent messagescolony messages all- List all messages
Global Options
--help, -h Show help information
--version, -V Show version information
Common Patterns
Quick Status Check
colony status && colony health
View Recent Errors
colony logs --level error --lines 50
Start and Monitor
colony start && colony tui
Sync and Stop
colony state sync && colony stop
Exit Codes
0- Success1- General error2- Command error130- Interrupted (Ctrl+C)
Environment Variables
# Colony configuration file (default: colony.yml)
export COLONY_CONFIG=/path/to/config.yml
# Log level (default: info)
export COLONY_LOG_LEVEL=debug
# Tmux session name (default: colony)
export COLONY_TMUX_SESSION=my-session
Shell Completion
Generate shell completions:
# Bash
colony completions bash > ~/.local/share/bash-completion/completions/colony
# Zsh
colony completions zsh > ~/.zsh/completions/_colony
# Fish
colony completions fish > ~/.config/fish/completions/colony.fish
Next Steps
- colony init - Initialize a colony
- colony start - Start agents
- colony template - Manage templates
- colony workflow - Manage workflows