CLI Reference
Complete reference for RAPID CLI commands.
Installation
Section titled “Installation”npm install -g @a3t/rapidGlobal Options
Section titled “Global Options”These options work with all commands:
| Option | Description |
|---|---|
--help, -h | Show help |
--version, -v | Show version |
--config <path> | Path to rapid.json |
--verbose | Verbose output |
--quiet, -q | Minimal output |
rapid init
Section titled “rapid init”Initialize RAPID in a project.
rapid init [options]Options
Section titled “Options”| Option | Default | Description |
|---|---|---|
--template <name> | Auto-detected | Template to use (typescript, python, etc.) |
--force | false | Overwrite existing files |
--no-devcontainer | false | Skip devcontainer creation |
--prebuilt | false | Use pre-built images (faster startup) |
--agent <name> | claude | Default agent to configure |
--mcp <servers> | context7,tavily | MCP servers to enable (comma-separated) |
--no-mcp | false | Skip MCP server configuration |
--no-detect | false | Skip auto-detection of project type |
--no-claude-plugin | false | Skip Claude Code plugin generation |
Examples
Section titled “Examples”# Basic initialization (auto-detects project type)rapid init
# Use TypeScript templaterapid init --template typescript
# Use pre-built images for faster startuprapid init --prebuilt
# Initialize with OpenCode as defaultrapid init --agent opencode
# Initialize with specific MCP serversrapid init --mcp context7,tavily,playwright
# Skip MCP serversrapid init --no-mcp
# Skip devcontainer (use existing)rapid init --no-devcontainer
# Force overwrite existing configrapid init --forceCreated Files
Section titled “Created Files”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 hooksrapid start
Section titled “rapid start”Start the development environment.
rapid start [options]Options
Section titled “Options”| Option | Default | Description |
|---|---|---|
--rebuild | false | Force rebuild container |
--no-cache | false | Build without Docker cache |
--reinstall-tools | false | Reinstall AI CLI tools |
--skip-secrets | false | Skip secret loading |
--detach, -d | false | Run in background |
Examples
Section titled “Examples”# Normal startrapid start
# Force full rebuildrapid start --rebuild --no-cache
# Start without loading secretsrapid start --skip-secrets
# Start in backgroundrapid start -dExit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Configuration error |
| 2 | Docker not available |
| 3 | Build failed |
| 4 | Secret loading failed |
rapid dev
Section titled “rapid dev”Launch AI coding session. Automatically creates git worktrees for feature branch isolation.
rapid dev [options]Options
Section titled “Options”| Option | Default | Description |
|---|---|---|
--agent <name> | From config | Agent to use |
--multi | false | Launch all agents in tmux |
--attach | false | Attach to existing session |
--layout <type> | tiled | Tmux layout (multi mode) |
--local | false | Run locally instead of in container |
--no-start | false | Do not auto-start container if stopped |
--no-worktree | false | Skip automatic worktree for branches |
Automatic Worktrees
Section titled “Automatic Worktrees”When running on a feature branch (not main/master), rapid dev automatically:
- Creates a sibling worktree directory (e.g.,
../project-feat-my-feature/) - Runs the devcontainer in that worktree
- Keeps your main directory clean for quick branch switching
Use --no-worktree to disable this behavior.
Layout Types (—multi)
Section titled “Layout Types (—multi)”| Layout | Description |
|---|---|
tiled | Equal size panes |
horizontal | Stacked horizontally |
vertical | Stacked vertically |
main-vertical | One large, others small |
Examples
Section titled “Examples”# Launch default agentrapid dev
# Launch specific agentrapid dev --agent aider
# Launch all agentsrapid dev --multi
# Launch with specific layoutrapid dev --multi --layout main-vertical
# Attach to running sessionrapid dev --attachrapid stop
Section titled “rapid stop”Stop the development environment.
rapid stop [options]Options
Section titled “Options”| Option | Default | Description |
|---|---|---|
--remove | false | Remove container after stop |
--volumes | false | Also remove volumes |
--force | false | Force stop (SIGKILL) |
Examples
Section titled “Examples”# Normal stoprapid stop
# Stop and remove containerrapid stop --remove
# Stop, remove container and volumesrapid stop --remove --volumes
# Force stoprapid stop --forcerapid agent
Section titled “rapid agent”Manage AI agents.
rapid agent <subcommand> [options]Subcommands
Section titled “Subcommands”rapid agent list
Section titled “rapid agent list”List available agents.
rapid agent listOutput:
Available agents: * claude (default) opencode aiderrapid agent add
Section titled “rapid agent add”Add a new agent.
rapid agent add <name> [options]| Option | Description |
|---|---|
--cli <command> | CLI command |
--instruction-file <path> | Instruction file path |
--install-cmd <command> | Installation command |
# Add with promptsrapid agent add my-agent
# Add with optionsrapid agent add my-agent \ --cli my-tool \ --instruction-file MY_AGENT.md \ --install-cmd "npm install -g my-tool"rapid agent remove
Section titled “rapid agent remove”Remove an agent.
rapid agent remove <name>rapid agent default
Section titled “rapid agent default”Set default agent.
rapid agent default <name>rapid agent yolo
Section titled “rapid agent yolo”Toggle YOLO mode for an agent (skip permission prompts).
rapid agent yolo <name> [options]| Option | Description |
|---|---|
--enable | Enable YOLO mode |
--disable | Disable YOLO mode |
YOLO mode adds --dangerously-skip-permissions to Claude Code, allowing it to execute commands without confirmation prompts.
Examples
Section titled “Examples”# List agentsrapid agent list
# Set default to opencoderapid agent default opencode
# Add custom agentrapid agent add cursor --cli cursor --instruction-file CURSOR.md
# Remove agentrapid agent remove aider
# Enable YOLO mode for Clauderapid agent yolo claude --enable
# Disable YOLO moderapid agent yolo claude --disablerapid secrets
Section titled “rapid secrets”Manage secrets.
rapid secrets <subcommand>Subcommands
Section titled “Subcommands”rapid secrets list
Section titled “rapid secrets list”List configured secrets (names only).
rapid secrets listrapid secrets verify
Section titled “rapid secrets verify”Verify all secrets are accessible.
rapid secrets verifyrapid secrets refresh
Section titled “rapid secrets refresh”Reload secrets into environment.
rapid secrets refreshExamples
Section titled “Examples”# List secret namesrapid secrets list
# Verify accessrapid secrets verify
# Refresh after rotationrapid secrets refreshrapid status
Section titled “rapid status”Show environment status.
rapid status [options]Options
Section titled “Options”| Option | Description |
|---|---|
--json | Output as JSON |
Output
Section titled “Output”RAPID Status────────────Container: running (rapid-my-project)Uptime: 2h 34mAgent: claude (active)Secrets: loaded (3 items)MCP: 2 servers connectedrapid mcp
Section titled “rapid mcp”Manage MCP (Model Context Protocol) servers.
rapid mcp <subcommand> [options]Subcommands
Section titled “Subcommands”rapid mcp list
Section titled “rapid mcp list”List configured MCP servers.
rapid mcp list [options]| Option | Description |
|---|---|
--json | Output as JSON |
--templates | Show available server templates |
# List configured serversrapid mcp list
# Show available templatesrapid mcp list --templatesrapid mcp add
Section titled “rapid mcp add”Add an MCP server.
rapid mcp add <name> [options]| Option | Description |
|---|---|
--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 |
# Add from templaterapid mcp add playwright
# Add custom remote serverrapid mcp add myapi --type remote --url https://api.example.com/mcp
# Add custom stdio serverrapid mcp add mytool --type stdio --command npx --args "@example/mcp-server"rapid mcp remove
Section titled “rapid mcp remove”Remove an MCP server.
rapid mcp remove <name>rapid mcp enable
Section titled “rapid mcp enable”Enable a disabled MCP server.
rapid mcp enable <name>rapid mcp disable
Section titled “rapid mcp disable”Disable an MCP server (without removing).
rapid mcp disable <name>rapid mcp status
Section titled “rapid mcp status”Show MCP server status.
rapid mcp status [options]| Option | Description |
|---|---|
--json | Output as JSON |
rapid mcp sync
Section titled “rapid mcp sync”Regenerate .mcp.json and opencode.json from rapid.json.
rapid mcp syncExamples
Section titled “Examples”# List available templatesrapid mcp list --templates
# Add Context7 and Tavilyrapid mcp add context7rapid mcp add tavily
# Check statusrapid mcp status
# Temporarily disable a serverrapid mcp disable tavily
# Re-enable itrapid mcp enable tavily
# Remove a serverrapid mcp remove playwrightrapid worktree
Section titled “rapid worktree”Manage git worktrees for isolated development.
rapid worktree <subcommand> [options]Alias: rapid wt
Subcommands
Section titled “Subcommands”rapid worktree list
Section titled “rapid worktree list”List all git worktrees.
rapid worktree list [options]| Option | Description |
|---|---|
--json | Output as JSON |
Output:
Git Worktrees
* main /path/to/project HEAD: abc1234
feat/my-feature /path/to/project-feat-my-feature HEAD: def5678rapid worktree prune
Section titled “rapid worktree prune”Remove stale worktree references (directories that no longer exist).
rapid worktree prune [options]| Option | Description |
|---|---|
--dry-run | Show what would be pruned without removing |
rapid worktree remove
Section titled “rapid worktree remove”Remove a specific worktree.
rapid worktree remove <path-or-branch> [options]| Option | Description |
|---|---|
-f, --force | Force removal even if worktree is dirty |
Alias: rapid worktree rm
rapid worktree cleanup
Section titled “rapid worktree cleanup”Remove worktrees for branches that have been merged into main/master.
rapid worktree cleanup [options]| Option | Description |
|---|---|
--dry-run | Show what would be removed |
Examples
Section titled “Examples”# List all worktreesrapid worktree list
# Prune stale worktreesrapid worktree prune
# Remove worktree for a specific branchrapid worktree remove feat/old-feature
# Force remove a worktreerapid worktree remove feat/wip --force
# Clean up merged branch worktreesrapid worktree cleanup
# Preview cleanup without removingrapid worktree cleanup --dry-runrapid lima
Section titled “rapid lima”Manage Lima VM for isolated local development on macOS.
rapid lima <subcommand> [options]Lima provides lightweight Linux VMs using Apple Virtualization.framework for near-native performance.
Subcommands
Section titled “Subcommands”rapid lima status
Section titled “rapid lima status”Show Lima VM status.
rapid lima status [options]| Option | Description |
|---|---|
--json | Output as JSON |
rapid lima start
Section titled “rapid lima start”Start the Lima VM.
rapid lima start [options]| Option | Default | Description |
|---|---|---|
--cpus <n> | 4 | Number of CPUs |
--memory <size> | 8GiB | Memory size |
--disk <size> | 50GiB | Disk size |
rapid lima stop
Section titled “rapid lima stop”Stop the Lima VM.
rapid lima stop [options]| Option | Description |
|---|---|
-f, --force | Force stop |
rapid lima shell
Section titled “rapid lima shell”Open a shell in the Lima VM.
rapid lima shell [options]| Option | Description |
|---|---|
-c, --command | Command to run instead of interactive shell |
rapid lima delete
Section titled “rapid lima delete”Delete the Lima VM and all its data.
rapid lima delete [options]| Option | Description |
|---|---|
-f, --force | Force delete without confirmation |
rapid lima list
Section titled “rapid lima list”List all Lima instances.
rapid lima list [options]| Option | Description |
|---|---|
--json | Output as JSON |
Examples
Section titled “Examples”# Check VM statusrapid lima status
# Start with custom resourcesrapid lima start --cpus 8 --memory 16GiB
# Open a shellrapid lima shell
# Run a command in the VMrapid lima shell --command "node --version"
# Stop the VMrapid 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
rapid context
Section titled “rapid context”Show or inject project context from rapid.json configuration.
rapid context [action] [options]Arguments
Section titled “Arguments”| Argument | Default | Description |
|---|---|---|
action | show | Action: show or inject |
Options
Section titled “Options”| Option | Description |
|---|---|
--json | Output as JSON |
Examples
Section titled “Examples”# Show context configurationrapid context show
# Show as JSONrapid context show --json
# Output assembled context (for hooks)rapid context injectThe inject action outputs the assembled context content to stdout, suitable for use in Claude Code hooks.
rapid bus
Section titled “rapid bus”Manage the event bus for multi-agent communication.
rapid bus <subcommand> [options]The event bus enables agents to communicate with each other in real-time, using Redis for message persistence and delivery.
Subcommands
Section titled “Subcommands”rapid bus status
Section titled “rapid bus status”Show event bus status.
rapid bus status [options]| Option | Description |
|---|---|
--json | Output as JSON |
Output:
RAPID Event Bus Status────────────────────────────────
Project: my-projectMode: Redis (persistent)URL: redis://localhost:6379Container: d5263f2e5c71
Messages: 12Agents: 2rapid bus history
Section titled “rapid bus history”Show recent message history.
rapid bus history [options]| Option | Default | Description |
|---|---|---|
--limit <n> | 50 | Number of messages to show |
--agent <id> | all | Filter by agent ID |
--type <type> | all | Filter by message type |
--json | Output as JSON |
rapid bus agents
Section titled “rapid bus agents”List connected agents.
rapid bus agents [options]| Option | Description |
|---|---|
--json | Output as JSON |
Examples
Section titled “Examples”# Check event bus statusrapid bus status
# View recent messagesrapid bus history
# View last 10 messagesrapid bus history --limit 10
# Filter by agentrapid bus history --agent claude-abc123
# List connected agentsrapid bus agents- The event bus starts automatically when
rapid devruns (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
rapid auth
Section titled “rapid auth”Show authentication status for external AI providers.
rapid auth [options]Options
Section titled “Options”| Option | Description |
|---|---|
--json | Output as JSON |
Examples
Section titled “Examples”# Check authentication statusrapid auth
# Output as JSONrapid auth --jsonOutput shows detected credentials for Claude, Codex, Gemini, Aider, and environment variables.
rapid update
Section titled “rapid update”Check for and install RAPID updates.
rapid update [options]Options
Section titled “Options”| Option | Description |
|---|---|
--check | Only check for updates |
-f, --force | Force update even if current |
Examples
Section titled “Examples”# Update RAPIDrapid update
# Check for updates without installingrapid update --check
# Force updaterapid update --forceEnvironment Variables
Section titled “Environment Variables”RAPID respects these environment variables:
| Variable | Description |
|---|---|
RAPID_CONFIG | Path to rapid.json |
RAPID_LOG_LEVEL | Log verbosity (debug, info, warn, error) |
RAPID_NO_COLOR | Disable colored output |
DOCKER_HOST | Docker daemon socket |
MCP_CONFIG_FILE | Path to MCP configuration file |
Configuration File
Section titled “Configuration File”See rapid.json Specification for complete configuration reference.
See MCP Server Configuration for MCP server setup.