Skip to content

Install

This page gets okfctl running on your machine. Each method here installs two programs: okfctl itself and okfctl-search (a plugin that adds semantic search). Each is a single file that works from anywhere on your PATH.

Which method to use: if you manage tools with Homebrew, use Homebrew, and brew upgrade will bring new releases. On any other Mac or Linux machine, use the install script. On Windows, download the .zip from the releases page.

The script works on macOS and Linux:

Terminal window
curl -sSL https://okfctl.dev/install.sh | sh

Here it is on a fresh Debian container, followed by a check that okfctl can see its plugin:

$ curl -sSL https://okfctl.dev/install.sh | sh
==> resolving latest release
==> installing okfctl v0.12.1 for linux/arm64
==> downloading okfctl_0.12.1_linux_arm64.tar.gz
==> downloading checksums.txt
==> checksum verified
==> installed okfctl and okfctl-search to /usr/local/bin
okfctl 0.12.1 (commit d1ab4ce53435963ff8d6ff9cb7c66c02558d9579, built 2026-11-28T22:22:04Z)
$ okfctl plugin list
okfctl-search /usr/local/bin/okfctl-search

Look for checksum verified. The script compares the archive it downloaded with the release’s published checksums, and if they don’t match it quits and installs nothing. The last line of the install is okfctl version, and it names whichever release is newest on the day you run the script. If okfctl plugin list finds okfctl-search, the plugin is in place.

The script installs to /usr/local/bin. If it can’t write there it asks for sudo, and on a machine with no sudo it uses ~/.local/bin. To pick the directory yourself, set OKFCTL_BIN_DIR. To install one particular release, set OKFCTL_VERSION to its tag:

Terminal window
curl -sSL https://okfctl.dev/install.sh | OKFCTL_VERSION=v0.12.1 sh

To upgrade, run the script again and it replaces the two files. To uninstall, delete okfctl and okfctl-search from the directory it installed them to.

Terminal window
brew install cwest/tap/okfctl

This works on macOS, and on Linux with Homebrew installed. Upgrade with brew upgrade okfctl and remove it with brew uninstall okfctl.

Download the file for your system from the releases page. There are amd64 and arm64 builds of each (a .zip for Windows and a .tar.gz for macOS and Linux), and you get okfctl, okfctl-search, the license, and the README in each one. On Windows the two programs are okfctl.exe and okfctl-search.exe. Put them in a folder that’s on your PATH.

On macOS or Linux, unpack the two programs and move them onto your PATH. Set VERSION to the release you downloaded:

Terminal window
VERSION=0.12.1
tar -xzf okfctl_${VERSION}_darwin_arm64.tar.gz okfctl okfctl-search
sudo mv okfctl okfctl-search /usr/local/bin/

On Linux (amd64 or arm64) you can also install a .deb or .rpm from the releases page. Either package puts the two programs in /usr/bin:

Terminal window
VERSION=0.12.1
sudo dpkg -i okfctl_${VERSION}_linux_amd64.deb # Debian, Ubuntu
sudo dnf install ./okfctl_${VERSION}_linux_amd64.rpm # Fedora, RHEL

Use dnf for the RPM. The package has no GPG signature. rpm -i on its own refuses it, and dnf install accepts a file you downloaded. You can still check the package against the release checksums (see the next section).

With Go 1.26.11 or later, install each program by its module path:

$ go install github.com/cwest/okfctl@latest
$ go install github.com/cwest/okfctl/cmd/okfctl-search@latest
$ okfctl version
okfctl v0.12.1 (commit none, built unknown)

You need the two commands, since the first one leaves out the search plugin. The version line shows the release tag. Go doesn’t record a commit or build date in this kind of build, and that’s why those fields read none and unknown. The programs land in $(go env GOPATH)/bin. Put that directory on your PATH.

Checking is optional. Each release publishes checksums.txt (one SHA-256 per archive and package) and signs that file with cosign using Sigstore’s keyless signing. The signature is checksums.txt.sigstore.json. Put the two files in the folder that holds your archive, then check the signature and the checksums:

$ 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.txt
Verified OK
$ shasum -a 256 --ignore-missing -c checksums.txt
okfctl_0.12.1_darwin_arm64.tar.gz: OK

Verified OK means the checksums file was signed by this repository’s release job on GitHub Actions. The OK on the last line means your archive matches its entry in that file. (--ignore-missing skips the files you didn’t download.) On Linux, sha256sum --ignore-missing -c checksums.txt does the same job. Each archive also has a software bill of materials (SBOM) beside it, named after the archive with .sbom.json added.

Terminal window
git clone https://github.com/cwest/okfctl.git
cd okfctl
go build -o okfctl .
go build -o okfctl-search ./cmd/okfctl-search

Built from a checkout, okfctl takes its version from git. okfctl version can show something like v0.12.1+dirty where a release build shows a plain number.

Make your first bundle with the authoring guide. If OKF is new to you, read Concepts first.

Made by Casey West.