Commands
Commands
Overview of all rft commands
Command Reference
| Command | Description |
|---|---|
rft init | Analyze compose file, suggest port fixes, generate config |
rft list | Show all worktrees with ports and container status |
rft start | Start Docker Compose stacks in parallel. --dry-run to preview |
rft stop | Stop running stacks |
rft restart | Restart stacks (stop + start) |
rft watch | Start stacks and auto-restart on file changes |
rft logs | Stream container logs. --no-follow for snapshot |
rft promote | Transfer changes to current branch. --dry-run to preview |
rft clean | Full cleanup: stop, remove worktrees, prune Docker |
rft status | One-line status for shell prompt integration |
rft completions | Generate shell completions (bash/zsh/fish) |
rft mcp | Start MCP server for AI agent integration |
Index-Based Selection
Most commands accept optional worktree indices. Indices are shown in the rft list output.
# Operate on all worktrees
rft start
# Operate on specific worktrees
rft start 1 3
# Single worktree
rft logs 1When no indices are provided, the command operates on all worktrees.