Skip to main content

Quick Start

Get BranchBox running in 2 minutes.

Installโ€‹

brew install branchbox/tap/branchbox

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โ€‹