Install the wt CLI
The wt CLI is the entry point to every WonderTwin workflow — running twins locally, scanning your project for SDKs that need twinning, subscribing to twins, and integrating twins into your application. This page covers installing the CLI itself; once it’s on your PATH, head to Running twins locally to spin up your first twin.
Install
Section titled “Install”brew install wondertwin-ai/tap/wtThis single command taps wondertwin-ai/homebrew-tap and installs the wt formula. Homebrew handles updates via brew upgrade wt.
On Linux, install via the Go toolchain:
go install github.com/wondertwin-ai/wondertwin/cmd/wt@latestThe binary lands at $GOPATH/bin/wt (or $HOME/go/bin/wt if GOPATH is unset). Make sure that directory is on your PATH:
export PATH="$HOME/go/bin:$PATH"Pre-req: Go 1.21+. If you don’t have Go installed, grab it from go.dev/dl or skip the toolchain and grab a binary directly — see the next tab.
Pre-built binaries for macOS (Intel + Apple Silicon) and Linux are attached to every release on the wondertwin repo’s Releases page.
-
Open the latest release.
-
Download the archive matching your platform — for example,
wondertwin_<version>_darwin_arm64.tar.gzfor Apple Silicon Macs. -
Extract and move the
wtbinary onto yourPATH:Terminal window tar -xzf wondertwin_*.tar.gzsudo mv wt /usr/local/bin/
Verify
Section titled “Verify”wt --versionYou should see the installed CLI version printed. If wt isn’t found, your PATH doesn’t include the install location — Homebrew installs to /opt/homebrew/bin (Apple Silicon) or /usr/local/bin (Intel/Linux), both of which are usually already on PATH.
What’s next
Section titled “What’s next”- Your first twin — declare twins in
wondertwin.json, runwt up, and point your SDK at localhost. Three steps, no new framework. - Wire your app to talk to it — the substitution pattern that lets dev/staging route through twins while production talks to real services.
- Browse the catalog — every twin we offer, by tier and category.