Skip to content

CLI Reference

Complete reference for RAPID CLI commands.

Terminal window
npm install -g @a3t/rapid

These options work with all commands:

OptionDescription
--help, -hShow help
--version, -vShow version
--config <path>Path to rapid.json
--verboseVerbose output
--quiet, -qMinimal output

Initialize RAPID in a project.

Terminal window
rapid init [options]
OptionDefaultDescription
--template <name>Auto-detectedTemplate to use (typescript, python, etc.)
--forcefalseOverwrite existing files
--no-devcontainerfalseSkip devcontainer creation
--prebuiltfalseUse pre-built images (faster startup)
--agent <name>claudeDefault agent to configure
--mcp <servers>context7,tavilyMCP servers to enable (comma-separated)
--no-mcpfalseSkip MCP server configuration
--no-detectfalseSkip auto-detection of project type
--no-claude-pluginfalseSkip Claude Code plugin generation
Terminal window
# Basic initialization (auto-detects project type)
rapid init
# Use TypeScript template
rapid init --template typescript
# Use pre-built images for faster startup
rapid init --prebuilt
# Initialize with OpenCode as default
rapid init --agent opencode
# Initialize with specific MCP servers
rapid init --mcp context7,tavily,playwright
# Skip MCP servers
rapid init --no-mcp
# Skip devcontainer (use existing)
rapid init --no-devcontainer
# Force overwrite existing config
rapid init --force
project/
├── rapid.json # RAPID configuration
├── .mcp.json # MCP server config (for Claude Code)
├── opencode.json # MCP server config (for OpenCode)
├── AGENTS.md # Generic agent instructions
├── CLAUDE.md # Claude-specific instructions
├── .devcontainer/ # (if not skipped)
│ └── devcontainer.json
└── .claude-plugin/ # (if using Claude)
├── plugin.json # Plugin manifest
├── commands/ # Slash commands
├── skills/ # Skill definitions
└── hooks/ # Lifecycle hooks

Start the development environment.

Terminal window
rapid start [options]
OptionDefaultDescription
--rebuildfalseForce rebuild container
--no-cachefalseBuild without Docker cache
--reinstall-toolsfalseReinstall AI CLI tools
--skip-secretsfalseSkip secret loading
--detach, -dfalseRun in background
Terminal window
# Normal start
rapid start
# Force full rebuild
rapid start --rebuild --no-cache
# Start without loading secrets
rapid start --skip-secrets
# Start in background
rapid start -d
CodeMeaning
0Success
1Configuration error
2Docker not available
3Build failed
4Secret loading failed

Launch AI coding session. Automatically creates git worktrees for feature branch isolation.

Terminal window
rapid dev [options]
OptionDefaultDescription
--agent <name>From configAgent to use
--multifalseLaunch all agents in tmux
--attachfalseAttach to existing session
--layout <type>tiledTmux layout (multi mode)
--localfalseRun locally instead of in container
--no-startfalseDo not auto-start container if stopped
--no-worktreefalseSkip automatic worktree for branches

When running on a feature branch (not main/master), rapid dev automatically:

  1. Creates a sibling worktree directory (e.g., ../project-feat-my-feature/)
  2. Runs the devcontainer in that worktree
  3. Keeps your main directory clean for quick branch switching

Use --no-worktree to disable this behavior.

LayoutDescription
tiledEqual size panes
horizontalStacked horizontally
verticalStacked vertically
main-verticalOne large, others small
Terminal window
# Launch default agent
rapid dev
# Launch specific agent
rapid dev --agent aider
# Launch all agents
rapid dev --multi
# Launch with specific layout
rapid dev --multi --layout main-vertical
# Attach to running session
rapid dev --attach

Stop the development environment.

Terminal window
rapid stop [options]
OptionDefaultDescription
--removefalseRemove container after stop
--volumesfalseAlso remove volumes
--forcefalseForce stop (SIGKILL)
Terminal window
# Normal stop
rapid stop
# Stop and remove container
rapid stop --remove
# Stop, remove container and volumes
rapid stop --remove --volumes
# Force stop
rapid stop --force

Manage AI agents.

Terminal window
rapid agent <subcommand> [options]

List available agents.

Terminal window
rapid agent list

Output:

Available agents:
* claude (default)
opencode
aider

Add a new agent.

Terminal window
rapid agent add <name> [options]
OptionDescription
--cli <command>CLI command
--instruction-file <path>Instruction file path
--install-cmd <command>Installation command
Terminal window
# Add with prompts
rapid agent add my-agent
# Add with options
rapid agent add my-agent \
--cli my-tool \
--instruction-file MY_AGENT.md \
--install-cmd "npm install -g my-tool"

Remove an agent.

Terminal window
rapid agent remove <name>

Set default agent.

Terminal window
rapid agent default <name>

Toggle YOLO mode for an agent (skip permission prompts).

Terminal window
rapid agent yolo <name> [options]
OptionDescription
--enableEnable YOLO mode
--disableDisable YOLO mode

YOLO mode adds --dangerously-skip-permissions to Claude Code, allowing it to execute commands without confirmation prompts.

Terminal window
# List agents
rapid agent list
# Set default to opencode
rapid agent default opencode
# Add custom agent
rapid agent add cursor --cli cursor --instruction-file CURSOR.md
# Remove agent
rapid agent remove aider
# Enable YOLO mode for Claude
rapid agent yolo claude --enable
# Disable YOLO mode
rapid agent yolo claude --disable

Manage secrets.

Terminal window
rapid secrets <subcommand>

List configured secrets (names only).

Terminal window
rapid secrets list

Verify all secrets are accessible.

Terminal window
rapid secrets verify

Reload secrets into environment.

Terminal window
rapid secrets refresh
Terminal window
# List secret names
rapid secrets list
# Verify access
rapid secrets verify
# Refresh after rotation
rapid secrets refresh

Show environment status.

Terminal window
rapid status [options]
OptionDescription
--jsonOutput as JSON
RAPID Status
────────────
Container: running (rapid-my-project)
Uptime: 2h 34m
Agent: claude (active)
Secrets: loaded (3 items)
MCP: 2 servers connected

Manage MCP (Model Context Protocol) servers.

Terminal window
rapid mcp <subcommand> [options]

List configured MCP servers.

Terminal window
rapid mcp list [options]
OptionDescription
--jsonOutput as JSON
--templatesShow available server templates
Terminal window
# List configured servers
rapid mcp list
# Show available templates
rapid mcp list --templates

Add an MCP server.

Terminal window
rapid mcp add <name> [options]
OptionDescription
--type <type>Server type: remote or stdio
--url <url>URL for remote servers
--command <cmd>Command for stdio servers
--args <args>Arguments (comma-separated)
--header <header>HTTP header (name=value), repeatable
Terminal window
# Add from template
rapid mcp add playwright
# Add custom remote server
rapid mcp add myapi --type remote --url https://api.example.com/mcp
# Add custom stdio server
rapid mcp add mytool --type stdio --command npx --args "@example/mcp-server"

Remove an MCP server.

Terminal window
rapid mcp remove <name>

Enable a disabled MCP server.

Terminal window
rapid mcp enable <name>

Disable an MCP server (without removing).

Terminal window
rapid mcp disable <name>

Show MCP server status.

Terminal window
rapid mcp status [options]
OptionDescription
--jsonOutput as JSON

Regenerate .mcp.json and opencode.json from rapid.json.

Terminal window
rapid mcp sync
Terminal window
# List available templates
rapid mcp list --templates
# Add Context7 and Tavily
rapid mcp add context7
rapid mcp add tavily
# Check status
rapid mcp status
# Temporarily disable a server
rapid mcp disable tavily
# Re-enable it
rapid mcp enable tavily
# Remove a server
rapid mcp remove playwright

Manage git worktrees for isolated development.

Terminal window
rapid worktree <subcommand> [options]

Alias: rapid wt

List all git worktrees.

Terminal window
rapid worktree list [options]
OptionDescription
--jsonOutput as JSON

Output:

Git Worktrees
* main
/path/to/project
HEAD: abc1234
feat/my-feature
/path/to/project-feat-my-feature
HEAD: def5678

Remove stale worktree references (directories that no longer exist).

Terminal window
rapid worktree prune [options]
OptionDescription
--dry-runShow what would be pruned without removing

Remove a specific worktree.

Terminal window
rapid worktree remove <path-or-branch> [options]
OptionDescription
-f, --forceForce removal even if worktree is dirty

Alias: rapid worktree rm

Remove worktrees for branches that have been merged into main/master.

Terminal window
rapid worktree cleanup [options]
OptionDescription
--dry-runShow what would be removed
Terminal window
# List all worktrees
rapid worktree list
# Prune stale worktrees
rapid worktree prune
# Remove worktree for a specific branch
rapid worktree remove feat/old-feature
# Force remove a worktree
rapid worktree remove feat/wip --force
# Clean up merged branch worktrees
rapid worktree cleanup
# Preview cleanup without removing
rapid worktree cleanup --dry-run

Manage Lima VM for isolated local development on macOS.

Terminal window
rapid lima <subcommand> [options]

Lima provides lightweight Linux VMs using Apple Virtualization.framework for near-native performance.

Show Lima VM status.

Terminal window
rapid lima status [options]
OptionDescription
--jsonOutput as JSON

Start the Lima VM.

Terminal window
rapid lima start [options]
OptionDefaultDescription
--cpus <n>4Number of CPUs
--memory <size>8GiBMemory size
--disk <size>50GiBDisk size

Stop the Lima VM.

Terminal window
rapid lima stop [options]
OptionDescription
-f, --forceForce stop

Open a shell in the Lima VM.

Terminal window
rapid lima shell [options]
OptionDescription
-c, --commandCommand to run instead of interactive shell

Delete the Lima VM and all its data.

Terminal window
rapid lima delete [options]
OptionDescription
-f, --forceForce delete without confirmation

List all Lima instances.

Terminal window
rapid lima list [options]
OptionDescription
--jsonOutput as JSON
Terminal window
# Check VM status
rapid lima status
# Start with custom resources
rapid lima start --cpus 8 --memory 16GiB
# Open a shell
rapid lima shell
# Run a command in the VM
rapid lima shell --command "node --version"
# Stop the VM
rapid lima stop
# Delete the VM (requires --force)
rapid lima delete --force
  • Lima is only available on macOS
  • Uses Apple Virtualization.framework (VZ) for best performance on Apple Silicon
  • SSH agent is automatically forwarded for commit signing
  • Install Lima with: brew install lima

Show or inject project context from rapid.json configuration.

Terminal window
rapid context [action] [options]
ArgumentDefaultDescription
actionshowAction: show or inject
OptionDescription
--jsonOutput as JSON
Terminal window
# Show context configuration
rapid context show
# Show as JSON
rapid context show --json
# Output assembled context (for hooks)
rapid context inject

The inject action outputs the assembled context content to stdout, suitable for use in Claude Code hooks.


Manage the event bus for multi-agent communication.

Terminal window
rapid bus <subcommand> [options]

The event bus enables agents to communicate with each other in real-time, using Redis for message persistence and delivery.

Show event bus status.

Terminal window
rapid bus status [options]
OptionDescription
--jsonOutput as JSON

Output:

RAPID Event Bus Status
────────────────────────────────
Project: my-project
Mode: Redis (persistent)
URL: redis://localhost:6379
Container: d5263f2e5c71
Messages: 12
Agents: 2

Show recent message history.

Terminal window
rapid bus history [options]
OptionDefaultDescription
--limit <n>50Number of messages to show
--agent <id>allFilter by agent ID
--type <type>allFilter by message type
--jsonOutput as JSON

List connected agents.

Terminal window
rapid bus agents [options]
OptionDescription
--jsonOutput as JSON
Terminal window
# Check event bus status
rapid bus status
# View recent messages
rapid bus history
# View last 10 messages
rapid bus history --limit 10
# Filter by agent
rapid bus history --agent claude-abc123
# List connected agents
rapid bus agents
  • The event bus starts automatically when rapid dev runs (if enabled in config)
  • Uses Redis in Docker for message persistence
  • Messages are retained for the session lifetime
  • Agents can send/receive messages via the RAPID MCP server tools

Show authentication status for external AI providers.

Terminal window
rapid auth [options]
OptionDescription
--jsonOutput as JSON
Terminal window
# Check authentication status
rapid auth
# Output as JSON
rapid auth --json

Output shows detected credentials for Claude, Codex, Gemini, Aider, and environment variables.


Check for and install RAPID updates.

Terminal window
rapid update [options]
OptionDescription
--checkOnly check for updates
-f, --forceForce update even if current
Terminal window
# Update RAPID
rapid update
# Check for updates without installing
rapid update --check
# Force update
rapid update --force

RAPID respects these environment variables:

VariableDescription
RAPID_CONFIGPath to rapid.json
RAPID_LOG_LEVELLog verbosity (debug, info, warn, error)
RAPID_NO_COLORDisable colored output
DOCKER_HOSTDocker daemon socket
MCP_CONFIG_FILEPath to MCP configuration file

See rapid.json Specification for complete configuration reference.

See MCP Server Configuration for MCP server setup.