Mergestorm

CLI

The mergestorm CLI (mg) reviews local diffs and opens stacked PRs from your terminal — the same workflow Mergestorm's agents use. MIT source on GitHub; install from npm.

Watch — stacked PRs (~1 min)

Stacked PRs from your terminal | Mergestorm CLI

Full walkthrough on the blog.

Install

Requires Node.js 22+. Either one-liner works; both put mergestorm and mg on your PATH.

install — bash
$curl -fsSL https://mergestorm.ai/install.sh | bash
$mg --version
# or: npm install -g mergestorm

Quickstart — stacked PRs

Happy path: login → create a layer → commit → submit. Submit opens chained PRs with gh and registers the stack so Vortex can review each layer.

first-stack — bash
$mg login
$mg stack create feat/my-first-layer
# edit, then commit as usual
$git commit -am "feat: first layer"
$mg stack submit
# later: mg stack restack <stack-id>
# later: mg stack land <stack-id>

One-shot local review (no PR): mg review. Interactive shell: bare mg on a TTY.

Links