Getting Started
Installation
Install spmx with Homebrew or a one-line script, then run setup.
spmx runs on macOS, on Apple Silicon and Intel. It is a single universal binary with no runtime dependencies.
brew install LuisRibeiroo/tap/spmx
spmx setupcurl -fsSL https://raw.githubusercontent.com/LuisRibeiroo/spmx/main/scripts/install.sh | shThe script detects your architecture, downloads the release archive, verifies its SHA-256 checksum, installs the binary to ~/.spmx/bin/spmx and runs spmx setup for you.
Homebrew tap
The formula template lives in the repository at Formula/spmx.rb. The tap and the first release are not published yet, so use the curl installer until they are.
What spmx setup does
- Creates
~/.spmxwithstore,compilation-cache,binandshimsdirectories. - Links
flutter,xcodebuildandswiftin~/.spmx/shimsto the spmx binary. - Adds
~/.spmx/shimsand~/.spmx/binto yourPATHin~/.zshrc,~/.bashrcor~/.config/fish/config.fish, once and idempotently.
Pass --no-modify-path to skip step 3 and add the line yourself:
export PATH="$HOME/.spmx/shims:$HOME/.spmx/bin:$PATH"Open a new shell, then confirm everything is in order:
spmx doctorGit hooks stay off after installation. See spmx hooks to opt in.