> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cubic.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Full installation guide

The **`mg` CLI** lets you interact with [cubic.dev](https://cubic.dev) to manage stacked pull requests. Install it using Homebrew with the steps below.

<Note>
  **Prerequisites** - **Git** (v2.20+) - A **GitHub** account (the GitHub CLI `gh` for
  authentication is optional) - [Homebrew](https://brew.sh)
</Note>

## Installation

Currently, the `mg` CLI is only supported through Homebrew:

```bash theme={null}
brew install gh cubic-io/homebrew-tap/mg
```

Verify the installation:

```bash theme={null}
mg version
```

<Tip>
  Homebrew works on macOS, Linux, and Windows (via WSL). If you don't have Homebrew installed, visit
  [brew.sh](https://brew.sh) for installation instructions.
</Tip>

***

## Next Steps

* **Installation complete?** Head to our [Quickstart](/quickstart) for a hands-on workflow demo.

* Need GitHub authentication or a trunk config? See [Initialize cubic](/how-to-guides/initialize-in-repo).

* Check the [FAQ](/faq-and-troubleshooting) if you run into issues.

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