Stacked PRs CLI
av is a free and open-source CLI built and managed by Aviator to manage Stacked PRs on top of GitHub. You can download and use the CLI even without creating an Aviator account.
What happened?
For the past couple of months, we have been working on a massive rewrite on the CLI and that is now generally available.
👉 Read the docs and the man pages
👉 Install and try out the CLI
👉 Give us a ⭐ on GitHub
What’s new
Interactive stack sync
Conditionally sync trunk branch
Conditionally push to origin
Cleanup merged branches
Auto-resolve merge conflicts with merged branches
Restack locally
A new command av stack restack to restack the branches without pushing to remote.
Stack visualization
av stack tree provides a clean visual of the entire stack and state of each branch.
Interactive switch
Use av stack switch to switch between branches of the stack.
Adopt branches or stacks
av stack adopt lets you adopt existing stacks or branches that were created without the CLI.
Other improvements
av commit ammendandav commit createprevents users from accidentally updating a merged branch.av stack switchcan take a branch name or a PR URL. You can directly jumpto the branch by pasting the URL.Support non-origin remote as the upstream.
av stack tidyto clean out merged / deleted branchesav stack orphanto remove a branch or a stack from trackingEnable writing stack trees to PR bodies
Performance improvements across all commands including stack sync, and stack adopt.






