Installation
Build swiftspawn from source and put it on your PATH.
swiftspawn is distributed as source. There’s no Homebrew tap yet and no signed binary. You build it once, copy the binary onto your PATH, and you’re done.
Requirements
Section titled “Requirements”- macOS 14 or later (the CLI has been tested on macOS 26).
- Swift 6.0 or later (
swift --version). Comes with Xcode 16+. - Xcode 26 if you want to open and run generated projects without adjustments.
- Optional:
swiftlintandswiftformatonPATHforswiftspawn lintandswiftspawn format.
Build from source
Section titled “Build from source”git clone https://github.com/swiftspawn/swiftspawn-cli.gitcd swiftspawn-cliswift build -c releaseThe release binary lands at .build/release/swiftspawn.
Put it on PATH
Section titled “Put it on PATH”Pick one of these. Both work; the second avoids sudo.
System-wide:
sudo cp .build/release/swiftspawn /usr/local/bin/swiftspawnUser-local (no sudo):
mkdir -p ~/.local/bincp .build/release/swiftspawn ~/.local/bin/swiftspawnIf ~/.local/bin is not on your PATH yet, add it to your shell profile (zsh shown):
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcsource ~/.zshrcVerify
Section titled “Verify”swiftspawn versionswiftspawn doctordoctor checks Xcode, Swift, SwiftLint, and SwiftFormat versions and reports anything missing. If everything is green, you’re ready.
Updating
Section titled “Updating”There’s no auto-update. Pull the repo and rebuild:
cd swiftspawn-cligit pullswift build -c releasesudo cp .build/release/swiftspawn /usr/local/bin/swiftspawnUninstall
Section titled “Uninstall”Remove the binary from wherever you put it:
sudo rm /usr/local/bin/swiftspawn# orrm ~/.local/bin/swiftspawn