CLI Commands
Complete reference for all IronCode command-line interface commands
Global Options
These options work with any command:
--print-logsPrint debug logs to console
--log-level <level>Set log level (debug, info, warn, error)
--max-memory <mb>Memory limit in MB (default: 300)
--enable-resource-monitorEnable resource monitoring
--no-enable-resource-monitorDisable resource monitoring
--helpShow help information
--versionShow version number
All Commands
ironcode
Start interactive TUI (default command)
Usage
Examples
run
Run IronCode with a message
Usage
Flags
-c, --continueContinue the last session
-s, --session <id>Continue specific session
--forkFork session before continuing
-m, --model <name>Model to use (e.g., anthropic/claude-sonnet-4)
--agent <name>Agent to use (build, plan, general)
-f, --file <path>File(s) to attach to message
--title <string>Session title
--format <type>Output format (default, json)
--variant <string>Model variant (reasoning effort)
--thinkingShow thinking blocks
Examples
agent
Manage custom agents
Usage
Subcommands
createCreate a new custom agent
--path <dir>Directory path for agent file--description <text>What the agent should do--mode <type>Agent mode (all, primary, subagent)--tools <list>Comma-separated tools to enable-m, --model <name>Model to uselistList all available agents
Examples
models
List available AI models
Usage
Flags
--verboseInclude metadata like costs
--refreshRefresh models cache from models.dev
Examples
auth
Manage authentication credentials
Usage
Subcommands
login [url]Log in to a provider
logoutLog out from a provider
listList providers with credentials (alias: ls)
Examples
session
Manage IronCode sessions
Usage
Subcommands
listList all sessions
-n, --max-count <n>Limit to N most recent sessions--format <type>Output format (table, json)Examples
stats
Show usage statistics
Usage
Flags
--days <n>Show stats for last N days
--tools <n>Number of tools to show
--models <n>Show model statistics
--project <id>Filter by project
Examples
export
Export session data as JSON
Usage
Examples
import
Import session from JSON file
Usage
Examples
pr
Fetch and checkout GitHub PR
Usage
Examples
mcp
Manage Model Context Protocol servers
Usage
Subcommands
addAdd an MCP server
listList MCP servers and their status (alias: ls)
auth [name]Authenticate with OAuth-enabled MCP server
logout [name]Remove OAuth credentials
debug <name>Debug OAuth connection
Examples
serve
Start headless IronCode server
Usage
Examples
attach
Attach to running IronCode server
Usage
Flags
--dir <path>Directory to run in
-s, --session <id>Session ID to continue
-p, --password <string>Basic auth password
Examples
upgrade
Upgrade IronCode to latest version
Usage
Flags
-m, --method <type>Installation method (npm, brew, etc.)
Examples
uninstall
Uninstall IronCode
Usage
Flags
-c, --keep-configKeep configuration files
-d, --keep-dataKeep session data and snapshots
--dry-runShow what would be removed
-f, --forceSkip confirmation prompts
Examples
debug
Debug tools and utilities
Usage
Subcommands
configDebug configuration
pathsShow global paths
rg treeShow directory tree
rg filesList files
rg search <pattern>Search files