Command reference
All commands accept -h/--help. Global flags (--no-color, --no-input, --verbose, --version) apply to every command and must come before the subcommand name.
Quick reference
| Command | What it does |
|---|---|
arc setup | Verify environment, configure git |
arc init | Initialize a stack |
arc new | Create a branch and add it to the stack |
arc add | Adopt an existing branch into the stack |
arc status | Show the stack |
arc sync | Fetch + cascade rebase |
arc rebase | Cascade-rebase all or part of the stack |
arc restack | Restack one branch without a full sync |
arc push | Force-push all branches |
arc submit | Create or update PRs |
arc land | Land a merged PR, restack above |
arc edit | Amend a branch's commit and cascade the change up |
arc amend | Append PR link to commit message |
arc drop | Remove a branch, restack above |
arc checkout | Switch to a branch by name or index |
arc up / arc down | Move through the stack |
arc top / arc bottom | Jump to stack ends |
arc tip | Create/update arc-tip branch at the stack's top |
arc stack analyze | Critical path, safe-to-land branches, blockers |
arc stack snapshot | Full stack snapshot: status + PR health + analysis |
arc doctor | Check environment and stack validity |
arc dashboard | Interactive TUI for PR status |
arc config | Read and write arc configuration |
arc report | File a bug or feedback issue |
arc schema | Print JSON Schema for a command's --json output |
arc upgrade | Upgrade arc to the latest version |
arc completions | Print shell completion script |
arc setup
arc setup [-q]
Checks that git and gh are on PATH, that gh is authenticated, and that git rerere is enabled. Enables rerere if it isn't. Does not modify any repo state.
Run this on every new machine before using arc.
arc init
arc init [--base <branch>] [--prefix <prefix>] [-q]
Initializes a stack in the current repo.
| Flag | Default | Description |
|---|---|---|
--base | repo default branch | Trunk branch the stack is rooted on |
--prefix | (none) | Prepended to branch names created by arc new |
-q | false | Suppress output |
Creates .arc/state.json (git-ignored), adds it to .gitignore, and scaffolds .arc/hooks/ with sample files. Safe to re-run — updates base/prefix in place.