The mg CLI lets you interact with mrge.io to manage stacked pull requests. Install it using Homebrew with the steps below.

Prerequisites - Git (v2.20+) - A GitHub account (optionally the GitHub CLI gh for authentication) - Homebrew

Installation

Currently, the mg CLI is only supported through Homebrew:

brew install gh mrge-io/homebrew-tap/mg

Verify the installation:

mg version

Homebrew works on macOS, Linux, and Windows (via WSL). If you don’t have Homebrew installed, visit brew.sh for installation instructions.


Next Steps

  • Installation complete? Head to our Quickstart for a hands-on workflow demo.

  • Need GitHub authentication or trunk config? See Initialize mrge.

  • Check the FAQ if you run into issues.

Congratulations! You can now run mg commands on your system.