·Mergestorm Team·Engineering
Stacked PRs from your terminal with Mergestorm CLI
Install mg, create stacked layers, submit chained GitHub PRs, and land the unit — a ~1 minute walkthrough of the Mergestorm CLI stacks workflow.
Stacked pull requests let you ship dependent changes as a chain — each layer is its own reviewable PR — instead of one giant diff or a pile of untracked branches.
Mergestorm CLI (mg) authors that stack from your terminal, opens the chained PRs with your GitHub auth, and registers the stack so Vortex can review each layer.
Watch the demo (~1 min)
Also on X.
Install
Requires Node.js 22+.
npm i -g mergestorm
mg --version
Or:
curl -fsSL https://mergestorm.ai/install.sh | bash
Source is public and MIT: github.com/marginsystems/mergestorm-cli.
Happy path
mg login
mg stack create feat/layer-one
# edit + commit
git commit -am "feat: layer one"
mg stack create feat/layer-two
# edit + commit
git commit -am "feat: layer two"
mg stack submit
mg stack submit pushes each layer, opens chained PRs (layer-one → main, layer-two → layer-one), and registers the stack in the dashboard. From there you can promote layers and land the unit when CI and review are green.
More
- Evergreen CLI page: /cli
- Docs (Review Jobs API & CLI): /docs#review-jobs-api
- npm: mergestorm