Skip to content

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.

  • 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: swiftlint and swiftformat on PATH for swiftspawn lint and swiftspawn format.
Terminal window
git clone https://github.com/swiftspawn/swiftspawn-cli.git
cd swiftspawn-cli
swift build -c release

The release binary lands at .build/release/swiftspawn.

Pick one of these. Both work; the second avoids sudo.

System-wide:

Terminal window
sudo cp .build/release/swiftspawn /usr/local/bin/swiftspawn

User-local (no sudo):

Terminal window
mkdir -p ~/.local/bin
cp .build/release/swiftspawn ~/.local/bin/swiftspawn

If ~/.local/bin is not on your PATH yet, add it to your shell profile (zsh shown):

Terminal window
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Terminal window
swiftspawn version
swiftspawn doctor

doctor checks Xcode, Swift, SwiftLint, and SwiftFormat versions and reports anything missing. If everything is green, you’re ready.

There’s no auto-update. Pull the repo and rebuild:

Terminal window
cd swiftspawn-cli
git pull
swift build -c release
sudo cp .build/release/swiftspawn /usr/local/bin/swiftspawn

Remove the binary from wherever you put it:

Terminal window
sudo rm /usr/local/bin/swiftspawn
# or
rm ~/.local/bin/swiftspawn