Installation
Installing Mago is a quick process with several options to suit your environment and preferences.
Shell installer (macOS & Linux)
This is the recommended method for most macOS and Linux users. Our script automatically downloads the correct binary for your system and adds it to your path.
Using curl
curl --proto '=https' --tlsv1.2 -sSfO https://carthage.software/mago.sh && bash mago.shUsing wget
wget -q https://carthage.software/mago.sh && bash mago.shInstalling a specific version
To install a specific version of Mago, use the --version= flag:
curl --proto '=https' --tlsv1.2 -sSfO https://carthage.software/mago.sh && bash mago.sh --version=1.0.0-rc.6Or with wget:
wget -q https://carthage.software/mago.sh && bash mago.sh --version=1.0.0-rc.6Manual download
You can always download a pre-compiled binary directly from our GitHub Releases page. This is the recommended method for Windows and a reliable fallback for other systems.
- Navigate to the Mago releases page.
- Download the appropriate archive for your operating system (e.g.,
mago-x86_64-pc-windows-msvc.zipfor Windows). - Unzip the archive.
- Place the
mago.exe(ormago) executable in a directory that is part of your system'sPATHenvironment variable.
Package managers
These methods are convenient but may be managed by the community or experience slight publishing delays. If you use Homebrew or Cargo, it is crucial to run mago self-update immediately after installation.
Composer (PHP project)
To add Mago as a development dependency to your PHP project via Composer:
composer require --dev "carthage-software/mago:^1.0.0-rc.6"Homebrew (macOS)
WARNING
The Homebrew formula for Mago is community-managed and often lags significantly behind official releases. This method is not recommended unless you follow it with a self-update.
- Install the potentially outdated version from Homebrew:sh
brew install mago - Immediately run
mago self-updateto get the latest official version:shmago self-update
Cargo (Rust)
INFO
Publishing to crates.io can sometimes be delayed after a new release.
- Install from Crates.io:sh
cargo install mago - Run
mago self-updateto ensure you have the absolute latest version:shmago self-update
Verify installation
Once installed, you can verify that Mago is working correctly by checking its version:
mago --version