Installation
Homebrew (recommended)
bash
brew tap ivantokar/homebrew-tap
brew install ivantokar/tap/mage
mage --helpUse the fully qualified formula name. mage also exists in Homebrew core as the Go Mage build tool, so brew install mage installs a different CLI.
If you already installed the Homebrew core formula, remove it first:
bash
brew uninstall mage
brew install ivantokar/tap/mageIf Homebrew reports that another mage executable is earlier in your PATH, remove or rename the old binary before using the Homebrew-installed one:
bash
rm ~/.local/bin/mage
hash -r
mage --helpThe Homebrew formula installs a prebuilt Apple Silicon bottle. If you see an Xcode or Command Line Tools version warning on macOS beta releases, make sure you are installing ivantokar/tap/mage, not building from source.
Build from source
bash
git clone git@github.com:ivantokar/mage.git
cd mage
swift build -c release
cp .build/release/Mage /usr/local/bin/mageVerify
bash
mage --helpRequirements
- macOS 13+
- Apple Silicon for the Homebrew bottle
- Swift 5.10+ toolchain only when building from source