| name | fleet |
| description | Manage isolated git-backed project workspaces with the fleet CLI. Use when working on a project that uses fleet, when creating/switching/merging/deleting workspaces, or when the user mentions fleet commands, fleet workspaces, or fleet init. |
Fleet
Fleet is a CLI for managing isolated project workspaces backed by git. Each workspace is a clone of the main workspace, letting you work on multiple tasks in parallel without stashing or branch-juggling.
Install
curl -fsSL https://raw.githubusercontent.com/TimoBechtel/fleet-cli/main/install.sh | bash
Then set up shell integration (required for fleet switch to change your directory):
eval "$(fleet shell-code)"
For a specific shell:
fleet shell-code --shell bash
Enable shell completions:
source <(fleet completion --shell bash)
source <(fleet completion --shell zsh)
fleet completion --shell fish | source
Project setup
Initialize fleet in a git repo:
fleet init [name]
This creates .fleet/config.json and .fleet/workspaces/.
Core commands
fleet add <name>
fleet switch [workspace]
fleet switch <name> -a
fleet switch -r
fleet merge <workspace>
fleet rm <workspace>
fleet clean
fleet exec <workspace> <command> [args...]
Typical workflow
fleet init
fleet add feature-login
fleet switch feature-login
fleet switch -r
fleet merge feature-login