Skip to main content

Laddr CLI Reference

Complete reference for all Laddr Command Line Interface (CLI) commands, options, and usage examples.

Overview

The Laddr CLI provides commands for:
  • Project scaffolding - Initialize complete project structures
  • Agent management - Add, configure, and run agents
  • Docker orchestration - Manage containerized environments
  • Observability - Built-in tracing, metrics, and diagnostics
  • Development tools - Hot reload, logging, and debugging

Installation


Global Options

Available for all commands:
  • -h, --help - Show help message and exit
  • --version - Show version and exit
  • --debug - Enable debug mode with full stack traces

Project Setup

init

Initialize a new Laddr project.
Options:
  • PROJECT_NAME - Name of the project (interactive if omitted)
  • --path - Path to create project in (default: current directory)
Examples:

Agent Management

add agent

Add a new agent to the project.
Options:
  • --role - Agent role
  • --goal - Agent goal
  • --backstory - Agent backstory (optional)
  • --llm-provider - LLM provider (default: gemini)
  • --llm-model - LLM model (default: gemini-2.5-flash)
Examples:

add tool

Add a new tool to an agent.
Options:
  • --agent - Agent to attach tool to
  • --description - Tool description
Examples:

Running & Execution

run dev

Run the Laddr development environment.
Options:
  • --build - Force rebuild Docker images
  • --detach, -d - Run in detached mode (background)
Examples:

run agent

Run a single agent locally.
Options:
  • --inputs - JSON dictionary of inputs (default: empty object)
Examples:

run-local

Run an agent locally using in-memory components.
Options:
  • --input - JSON input to the agent (default: empty object)
Examples:

prompt run

Execute a prompt with an agent.
Options:
  • --input, -i - Input as KEY=VALUE (repeatable)
  • --json, -j - Input as JSON string or @file.json
  • --wait/--no-wait - Wait for completion (default: true)
  • --timeout - Timeout in seconds (default: 60)
Examples:

prompt list

List recent prompt executions.
Options:
  • --limit - Maximum number to show (default: 20)

Monitoring & Debugging

logs

View logs for an agent worker.
Options:
  • --follow, -f - Follow log output (live tail)
  • --tail - Number of lines to show from end
Examples:

ps

Show status of all services and workers.
Options:
  • --format, -f - Output format (table or json)
Examples:

check

Run diagnostic checks for the Laddr runtime.
Options:
  • --output - Path to write JSON report (default: diagnostic_report.json)
Examples:

infra

Show infrastructure configuration and status.
Options:
  • --show-config/--no-show-config - Show configuration values (default: true)

Service Management

scale

Scale an agent worker to N replicas.
Examples:

stop

Stop all Laddr services.
Options:
  • --volumes, -v - Remove named volumes (warning: data loss)
Examples:

Next Steps