Three paths get you running fast, and they're in the
README: Homebrew, the install.sh one-liner, and
go install. This page covers everything else—prebuilt archives, system
packages, signature verification, and building from source.
Download the archive for your platform from the
releases page: macOS, Linux, and
Windows, on amd64 and arm64. Each archive bundles both okfctl and the
okfctl-search plugin—extract them onto your PATH:
tar -xzf okfctl_<version>_<os>_<arch>.tar.gz # or unzip the .zip on Windows
sudo mv okfctl okfctl-search /usr/local/bin/sudo dpkg -i okfctl_<version>_linux_<arch>.deb # Debian/Ubuntu
sudo rpm -i okfctl_<version>_linux_<arch>.rpm # Fedora/RHELEvery release ships an SBOM (syft) and is signed with cosign (keyless via Sigstore). Verify the checksums file, which covers every artifact:
cosign verify-blob \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp 'https://github.com/cwest/okfctl/.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
checksums.txtokfctl version # e.g. okfctl v0.2.0 (commit <sha>, built <date>)
okfctl --version # same stringgo build -o okfctl . # dynamic build; version reports "dev"
CGO_ENABLED=0 go build -o okfctl . # static, no cgo