Wefti

Install Wefti

Install Wefti from GitHub releases, Homebrew, Scoop, PyPI, or the project Nix flake. The VS Code extension is a downloadable package. Check channel status before you use a catalog.

curl -fsSL https://wefti.dev/install.sh | bash

Package and editor availability

Download Wefti v0.4.0 from GitHub. The table records channel status for v0.3.1. For a planned channel, the link opens the catalog to check for a future listing.

Wefti channel status on 2026-12-04
ChannelStatusVerification
GitHub releasesPublicPublished source or listing
PyPI enginePublicPublished source or listing
PyPI compatibility commandsPublicPublished source or listing
Homebrew tapPublicPublished source or listing
Scoop bucketPublicPublished source or listing
WinGetPendingSubmission
VS Code extension packageDownloadable artifactv0.3.1 package
VS Code MarketplacePlannedCatalog
Open VSXPlannedCatalog
Zed extension directoryPlannedCatalog
Zed development extensionPublicPublished source or listing
GitHub ActionsPublicPublished source or listing
pre-commit hooksPublicPublished source or listing
GitHub Container RegistryPublicPublished source or listing
Nix flakePublicPublished source or listing
crates.ioPlannedCatalog
Arch User RepositoryPlannedCatalog
NixpkgsPlannedCatalog
macOS and Linux installerPublicPublished source or listing
Windows installerPublicPublished source or listing
cargo-binstall release metadataPublicPublished source or listing
Source archivePublicPublished source or listing

Follow the migration procedure to compare a project. For editor setup, use the CMake language server guide. Install Wefti in GitHub Actions or a Python extension build with the relevant procedure.

Install and check the command

  1. Choose a package. Use the installer for your system, a package manager, or source.
  2. Verify the download. Check the SHA-256 checksum and the build attestation. See verify downloads.
  3. Put it on PATH. Run wefti directly, or add the CMake aliases for existing scripts.

Prebuilt binary targets

Prebuilt v0.4.0 binary targets
SystemTargetArchive
macOS Apple siliconaarch64-apple-darwin.tar.gz
macOS Intelx86_64-apple-darwin.tar.gz
Linux x86_64x86_64-unknown-linux-gnu.tar.gz
Linux ARM64aarch64-unknown-linux-gnu.tar.gz
Windows x64x86_64-pc-windows-msvc.zip
Windows ARM64aarch64-pc-windows-msvc.zip

The macOS arm64 wefti binary is 17.50 MiB (18,352,560 bytes). This is 0.89 MiB less than the v0.3.1 binary (18.39 MiB, 19,286,032 bytes). The Intel macOS build is cross-compiled and not run in CI.

Build with Ninja

Run wefti build build to build a Ninja project in the build directory. The command uses the built-in Ninja 1.13.2 executor and needs no separate ninja install.

If a script calls ninja directly, run wefti shim install ninja and put the shim directory first on PATH.

Pick a channel

macOS and Linux

Needs Bash and Python 3. --alias-cmake also installs cmake, ctest, cpack, and ccmake.

curl -fsSL https://wefti.dev/install.sh | bash
curl -fsSLO https://raw.githubusercontent.com/wefti/wefti/v0.4.0/scripts/install.sh
bash install.sh --version 0.4.0 --alias-cmake
export PATH="$HOME/.local/bin:$PATH"

Windows

Also installs wefti-shim.exe, which wefti shim enable uses.

irm https://wefti.dev/install.ps1 | iex
Invoke-WebRequest 'https://raw.githubusercontent.com/wefti/wefti/v0.4.0/scripts/install.ps1' -OutFile install.ps1
.\install.ps1 -Version 0.4.0 -AliasCmake
$env:Path = "$env:LOCALAPPDATA\wefti\bin;$env:Path"

Homebrew

Puts wefti, wefti-lsp, and wefti-verify next to your CMake.

brew install wefti/tap/wefti

Scoop

scoop bucket add wefti https://github.com/wefti/scoop-bucket
scoop install wefti/wefti

WinGet

The WinGet submission is pending. Use the Windows installer or Scoop for v0.4.0.

PyPI

wefti has the engine, wefti-lsp, and the CMake data. wefti-cmake adds the cmake commands for scikit-build-core.

pip install wefti
pip install wefti-cmake

cargo-binstall

Installs only wefti. Release binaries embed share/cmake-4.5 and unpack it on first run.

cargo binstall --git https://github.com/wefti/wefti wefti-cli

GitHub Actions

Installs Wefti, adds the cmake aliases, and enables GitHub Actions Cache v2 for later steps.

steps:
  - uses: actions/checkout@v6
  - uses: wefti/wefti/actions/setup-wefti@v0.4.0
    with:
      version: v0.4.0
  - run: wefti -S . -B build

pre-commit

The .pre-commit-hooks.yaml file defines wefti-fmt, wefti-fmt-fix, and wefti-lint.

repos:
  - repo: https://github.com/wefti/wefti
    rev: v0.4.0
    hooks:
      - id: wefti-fmt
      - id: wefti-lint

Container

A debian:trixie-slim image for linux/amd64 and linux/arm64, with wefti as the entry point.

docker run --rm -v "$PWD":/work ghcr.io/wefti/wefti:0.4.0 -S . -B build

Nix flake

Builds from source. wefti-dropin also adds the cmake commands.

nix profile install github:wefti/wefti
nix profile install github:wefti/wefti#wefti-dropin
nix develop github:wefti/wefti

VS Code, Zed, and Neovim

In Cursor or Windsurf, replace code with the editor command. For Zed, run zed: install dev extension on editors/zed.

Download the v0.4.0 extension package. Open it with the editor or use the command below.

code --install-extension wefti-0.4.0.vsix
cp editors/neovim/wefti.lua ~/.config/nvim/lua/plugins/wefti.lua

Run it as cmake

wefti shim enable --write-rc

Stay current

wefti self-update

Build from source

Needs Rust 1.99.1, Python 3, and a native toolchain on macOS or Linux.

git clone --branch v0.4.0 https://github.com/wefti/wefti.git
cd wefti
rustup toolchain install 1.99.1
scripts/install.sh --from-source

Verify downloads

Download your archive and SHA256SUMS.txt from the same release.

file=wefti-0.4.0-x86_64-unknown-linux-gnu.tar.gz
grep -F "  $file" SHA256SUMS.txt | sha256sum --check
gh attestation verify "$file" --repo wefti/wefti

On macOS, use shasum -a 256 --check. In PowerShell, compare the hash with SHA256SUMS.txt.

Get-FileHash .\wefti-0.4.0-x86_64-pc-windows-msvc.zip -Algorithm SHA256
gh attestation verify .\wefti-0.4.0-x86_64-pc-windows-msvc.zip --repo wefti/wefti

GitHub Actions with a portable probe cache

Save as .github/workflows/wefti.yml. One job exports the probe cache, and the build job imports it.

Run it on a protected main branch, with the same runner image for both jobs.

Show the workflow
name: Build with wefti
on:
  push:
    branches: [main]

permissions:
  contents: read

env:
  WEFTI_PROBE_CACHE: readwrite
  WEFTI_PROBE_CACHE_DIR: ${{ github.workspace }}/.wefti-probes

jobs:
  prepare-probes:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - name: Install wefti and Ninja
        run: |
          sudo apt-get update
          sudo apt-get install -y ninja-build
          curl -fsSLO https://raw.githubusercontent.com/wefti/wefti/v0.4.0/scripts/install.sh
          bash install.sh --version 0.4.0 --alias-cmake
          echo "$HOME/.local/bin" >> "$GITHUB_PATH"
      - name: Configure and export verified probes
        run: |
          wefti -S . -B build -G Ninja
          wefti cache export probes.tar.gz
          sha256sum probes.tar.gz | cut -d ' ' -f 1 > probes.sha256
      - uses: actions/upload-artifact@v4
        with:
          name: wefti-probes
          path: |
            probes.tar.gz
            probes.sha256
          if-no-files-found: error

  build:
    needs: prepare-probes
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - name: Install wefti and Ninja
        run: |
          sudo apt-get update
          sudo apt-get install -y ninja-build
          curl -fsSLO https://raw.githubusercontent.com/wefti/wefti/v0.4.0/scripts/install.sh
          bash install.sh --version 0.4.0 --alias-cmake
          echo "$HOME/.local/bin" >> "$GITHUB_PATH"
      - uses: actions/download-artifact@v4
        with:
          name: wefti-probes
      - name: Import probes and run the build
        run: |
          wefti cache import probes.tar.gz --sha256 "$(cat probes.sha256)"
          wefti -S . -B build -G Ninja
          cmake --build build
          ctest --test-dir build --output-on-failure

Frequently asked questions

How do I make cmake run Wefti?

Install the aliases with --alias-cmake or -AliasCmake. Put the install bin directory first on PATH and run cmake --version to check which tool the shell finds.

Can I install Wefti alongside CMake?

Yes. Install Wefti without aliases and invoke it by name. Keep CMake 4.5.1 available for wefti verify and for builds that require upstream CMake.

Can I carry compiler probes to a fresh runner?

Yes. Export probes from a trusted job, transfer the archive and its SHA-256 digest, and import them before native configure. Cache hits require matching recorded inputs.

Which platforms have prebuilt Wefti binaries?

From version 0.3.0, releases cover macOS, Linux, and Windows, each on x86_64 and ARM64. The table on this page lists the six target triples.

How do I install the Wefti VS Code or Zed extension?

For VS Code, Cursor, or Windsurf, build the package in editors/vscode and install the .vsix file. For Zed, run zed: install dev extension and select editors/zed. Install Wefti first so that the extension finds wefti-lsp.