Quick Start
Get BranchBox running in 2 minutes.
Installโ
- Homebrew (macOS)
- Script (Linux/macOS)
brew install branchbox/tap/branchbox
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh | bash
Initialize Your Projectโ
Navigate to any git repository and run:
branchbox init
BranchBox will:
- Detect your stack (Rails, Node.js, Rust, or Generic)
- Set up the
.branchbox/registry - Validate your devcontainer (if present)
Start Your First Featureโ
branchbox feature start "Add user authentication"
You'll see output like:
๐ Feature workspace ready (full)
Feature: add-user-authentication
+------------------+------------+------------------------------------------+
| Step | Result | Details |
+------------------+------------+------------------------------------------+
| Worktree | โ ready | ../add-user-authentication |
| Branch | โ ready | feature/add-user-authentication |
| Adapter | โ detected | Rails ยท http://localhost:3000 |
| Compose project | โ isolated | branchbox-add-user-authentication |
| .env | โ copied | ../add-user-authentication/.env |
| Modules | โ ready | 4 ok |
+------------------+------------+------------------------------------------+
Work in Your Isolated Environmentโ
As shown in the output, the new workspace is created in the parent directory. Change into it:
cd ../add-user-authentication
You're now in a fully isolated workspace:
- Own git branch โ
feature/add-user-authentication - Own Docker network โ no port conflicts
- Own database โ no data leaks
- Own
.envโ customized for this feature
Run your app, make changes, commit freely. Your main workspace is untouched.
See All Your Featuresโ
branchbox feature list
๐ Feature registry โ 2 active ยท 0 removed (showing 2/2)
Feature Status Mode Branch Updated
------------------------ ------ ---- ----------------------------------- ----------------
add-user-authentication Active full feature/add-user-authentication 2025-01-07 10:30
fix-payment-bug Active full feature/fix-payment-bug 2025-01-07 09:15
Clean Up When Doneโ
branchbox feature teardown add-user-authentication
๐งน Feature teardown finished
Worktree removed: yes
Branch deleted: yes
Everything is gone. Clean slate.
Next Stepsโ
- Working with AI Agents โ Give Claude/Copilot safe sandboxes
- Minimal Mode โ Quick spikes without full provisioning
- Sharing with Tunnels โ Let reviewers see your feature live
- CLI Reference โ Every command and flag