Installation
Quick Install
Homebrew (macOS/Linux)
The easiest way to install MageBox on macOS or Linux with Homebrew:
brew tap qoliber/magebox
brew install mageboxInstall Script
One-liner installation for any platform:
curl -fsSL https://get.magebox.dev | bashThis downloads the latest release and installs it to /usr/local/bin/magebox.
Short Command Aliases
Create shorter aliases for faster typing:
# Create both aliases (recommended)
sudo ln -sf /usr/local/bin/magebox /usr/local/bin/mb
sudo ln -sf /usr/local/bin/magebox /usr/local/bin/mbox
# Or choose one:
# mb - shortest (2 chars)
# mbox - more descriptiveNow you can use whichever you prefer:
mb start # Shortest
mbox start # More descriptive
magebox start # Full commandManual Installation
Download Binary
Download the appropriate binary for your platform from GitHub Releases:
curl -L https://github.com/qoliber/magebox/releases/latest/download/magebox-darwin-arm64 -o magebox
chmod +x magebox
sudo mv magebox /usr/local/bin/curl -L https://github.com/qoliber/magebox/releases/latest/download/magebox-darwin-amd64 -o magebox
chmod +x magebox
sudo mv magebox /usr/local/bin/curl -L https://github.com/qoliber/magebox/releases/latest/download/magebox-linux-amd64 -o magebox
chmod +x magebox
sudo mv magebox /usr/local/bin/curl -L https://github.com/qoliber/magebox/releases/latest/download/magebox-linux-arm64 -o magebox
chmod +x magebox
sudo mv magebox /usr/local/bin/Build from Source
Requires Go 1.21 or later:
git clone https://github.com/qoliber/magebox.git
cd magebox
go build -o magebox ./cmd/magebox
sudo mv magebox /usr/local/bin/Verify Installation
magebox --version
# MageBox v0.1.0System Requirements
macOS
- macOS 12 (Monterey) or later
- Homebrew (for PHP and Nginx installation)
- Docker Desktop or Colima
Linux
- Ubuntu 20.04+, Debian 11+, or Fedora 36+
- Docker Engine
- systemd (for service management)
Windows WSL2
- Windows 10 (version 2004+) or Windows 11
- WSL2 with Ubuntu or Fedora distribution
- Docker Desktop with WSL2 backend enabled
Dependencies
MageBox requires several dependencies to function. The magebox bootstrap command will check for and help install these:
| Dependency | Purpose | Installation |
|---|---|---|
| Docker | Run services | Docker Desktop / Engine |
| Nginx | Web server | Homebrew / apt |
| PHP 8.1+ | PHP runtime | Homebrew / Ondrej PPA |
| mkcert | SSL certificates | Homebrew / apt |
| Composer | PHP packages | Homebrew / apt |
macOS Dependencies
# Install Homebrew if needed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install dependencies
brew install nginx [email protected] mkcert composer
brew install --cask dockerUbuntu/Debian Dependencies
# Add PHP repository
sudo add-apt-repository ppa:ondrej/php
sudo apt update
# Install dependencies
sudo apt install nginx php8.2-fpm php8.2-cli php8.2-common \
php8.2-mysql php8.2-xml php8.2-curl php8.2-gd php8.2-mbstring \
php8.2-zip php8.2-bcmath php8.2-intl php8.2-soap composer
# Install mkcert
sudo apt install libnss3-tools
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
sudo mv mkcert-v*-linux-amd64 /usr/local/bin/mkcert
# Install Docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USERUpdating MageBox
Homebrew
brew upgrade qoliber/magebox/mageboxSelf-Update
MageBox includes built-in self-update functionality:
# Check for updates
magebox self-update check
# Update to latest version
magebox self-updateThe self-update command automatically syncs the updated binary to all known locations (~/.magebox/bin/magebox, ~/.magebox/bin/mbox, /usr/local/bin/magebox, /usr/local/bin/mbox) to prevent version mismatches.
Next Steps
After installation, run the bootstrap command to set up your environment:
magebox bootstrapSee Bootstrap for details on what this command does.