Installation
Learn how to install the WriftAI CLI
You can install the WriftAI CLI (wriftai) on Linux, macOS, or Windows using your preferred package manager or by downloading prebuilt binaries from the Releases page.
Homebrew (macOS & Linux)
brew install wriftai/tap/wriftaiTo upgrade:
brew upgrade wriftaiScoop (Windows)
scoop bucket add wriftai https://github.com/wriftai/scoop-bucket.git
scoop install wriftaiTo upgrade:
scoop update wriftaiLinux Packages (deb, rpm, apk, archlinux)
Prebuilt packages are available for multiple architectures. Download the file that matches your distro and architecture from the Releases page. Filenames look like:
wriftai_<VERSION>_linux_<ARCH>.(deb|rpm|apk|pkg.tar.zst)Debian / Ubuntu (.deb)
sudo dpkg -i wriftai_<VERSION>_linux_<ARCH>.debFedora / RHEL / CentOS (.rpm)
sudo rpm -i wriftai_<VERSION>_linux_<ARCH>.rpmAlpine (.apk)
sudo apk add --allow-untrusted wriftai_<VERSION>_linux_<ARCH>.apkArch Linux (.pkg.tar.zst)
sudo pacman -U wriftai_<VERSION>_linux_<ARCH>.pkg.tar.zstManual Installation (Binaries)
Download the appropriate archive for your OS and architecture from the Releases page:
# Example for Linux (x86_64)
tar -xzf wriftai_Linux_x86_64.tar.gz
sudo mv wriftai /usr/local/bin/Install via Go Modules
You can also install the CLI via go modules without the help of package managers.
go install github.com/wriftai/cli@latestAdd a symlink to the binary in $PATH for easier access:
sudo ln -s "$(go env GOPATH)/bin/cli" /usr/local/bin/wriftaiBuild from Source
To build the latest development version, you’ll need Go 1.22+ installed.
git clone https://github.com/wriftai/cli.git
cd cli
make buildThis produces a wriftai binary in the /tmp/bin/ directory.
You can then run:
sudo mv /tmp/bin/wriftai /usr/local/bin/GitHub Actions
To use this CLI in GitHub workflows, we provide an official installation action.
Shell Completions
If you installed wriftai using Homebrew, Scoop, or a Linux package, shell completions for Bash, Zsh, Fish, and PowerShell are installed automatically. If they don’t load right away, restart your shell.
If you installed manually or built from source, you can generate them on demand:
wriftai completion <shell>For example:
wriftai completion bash
wriftai completion zsh
wriftai completion fish
wriftai completion powershellYou can then add the output to your shell’s completion directory or source it directly.
See wriftai completion --help for more information.
Man Pages
WriftAI CLI includes prebuilt Unix-style man pages that provide documentation for each command.
Automatic Installation (Linux/macOS)
If you installed wriftai using Homebrew, Scoop, or a Linux package, the man pages are installed automatically in the standard system location:
/usr/share/man/man1/wriftai.1You can directly view them using:
man wriftaiManual Installation (Linux/macOS)
If you installed wriftai manually via archive — refer to Manual Installation (Binaries) — the man pages are included in the archive and will be available after extraction.
To view them directly:
man -l ./man/wriftai.1To install them system-wide:
sudo cp man/*.1 /usr/share/man/man1/After installation, you can use:
man wriftaiIf you built from source — refer to Build from Source — generate the man pages first:
make manThen install and view them as above.
Verify Installation:
wriftai version