CLI Overview
The IronClaw CLI provides comprehensive control over your AI assistant through terminal commands. Useironclaw <subcommand> --help for detailed information about any command.
Basic Usage
Global Flags
These flags work with any command:Examples
Command Categories
Setup & Configuration
- onboard - Interactive setup wizard for first-time configuration
- config - Manage application settings
- doctor - Run diagnostics and health checks
- status - Show system health and status
Extensions & Tools
- tool - Manage WASM tools (install, list, remove, auth)
- registry - Browse and install extensions from the registry
- mcp - Manage MCP servers (hosted tool providers)
Data & Memory
- memory - Query and manage workspace memory
Channels & Pairing
- pairing - Manage DM pairing requests (Telegram, Slack, etc.)
System Management
- service - Manage OS service (launchd/systemd)
Common Patterns
First-Time Setup
Tool Management Workflow
MCP Server Workflow
Memory Operations
Configuration Management
Exit Codes
0- Success1- General error- Non-zero - Command-specific error
Environment Variables
The CLI respects standard environment variables:DATABASE_URL- PostgreSQL connection stringDATABASE_BACKEND- Backend type (postgres, libsql, turso, sqlite)LIBSQL_PATH- Path to libSQL database fileSECRETS_MASTER_KEY- Master key for secrets encryptionNEARAI_API_KEY- NEAR AI API keyNEARAI_SESSION- NEAR AI session file path
Shell Completion
Generate shell completion scripts:Output Formats
Most list commands support both human-readable and JSON output:Tips
- Use
--helpliberally - every command has detailed help text - Tab completion makes navigation faster (install shell completions)
- Most commands validate inputs and provide actionable error messages
- Check
ironclaw doctorif something isn’t working - Use
--verboseor-vflags for detailed output when debugging