Skip to main content

CLI Overview

The IronClaw CLI provides comprehensive control over your AI assistant through terminal commands. Use ironclaw <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 - Success
  • 1 - General error
  • Non-zero - Command-specific error

Environment Variables

The CLI respects standard environment variables:
  • DATABASE_URL - PostgreSQL connection string
  • DATABASE_BACKEND - Backend type (postgres, libsql, turso, sqlite)
  • LIBSQL_PATH - Path to libSQL database file
  • SECRETS_MASTER_KEY - Master key for secrets encryption
  • NEARAI_API_KEY - NEAR AI API key
  • NEARAI_SESSION - NEAR AI session file path
See the Configuration guide for a complete list.

Shell Completion

Generate shell completion scripts:

Output Formats

Most list commands support both human-readable and JSON output:

Tips

  • Use --help liberally - 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 doctor if something isn’t working
  • Use --verbose or -v flags for detailed output when debugging