Installing CUE
This page is how you install CUE: the official distribution, built and signed by CUE Labs, the team that makes CUE, and published on cue.dev. It is built from the public source of CUE, which is licensed under the Apache License 2.0; the FAQ says how it may come to differ from that source over time.
Download and install
The latest release is v0.18.0, published on November 24, 2026.
Install script
On Linux and macOS, this command installs the latest release:
curl -fsSL https://cue.dev/install.sh | shTo install a particular version, name it:
curl -fsSL https://cue.dev/install.sh | sh -s -- v0.18.0The script installs cue in /usr/local/bin if you can write to it, otherwise in ~/.local/bin, or in the directory you name with --dir. It never uses sudo or edits your shell’s profile, and it leaves alone a cue that Homebrew or a package manager installed. It checks the archive against the release’s checksum file, which catches a damaged or incomplete download; the two come from the same host. You can read the script before you run it.
macOS
The installer is one package for Apple silicon and Intel Macs. It is signed
by CUE Labs and notarized by Apple, so macOS opens it without a warning, and
it installs cue in /usr/local/bin.
Download the installer, cue_v0.18.0_darwin_all.pkg, and open it.
Or, in a terminal:
curl -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_darwin_all.pkg
curl -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_checksums.txt
shasum -a 256 --check --ignore-missing cue_v0.18.0_checksums.txt
sudo installer -pkg cue_v0.18.0_darwin_all.pkg -target /The cue in each macOS archive is signed and notarized too.
If you also have cue from Homebrew, the one that comes first on your
PATH runs, and type -a cue lists them in that order. On Apple silicon,
Homebrew puts its cue in /opt/homebrew/bin. On an Intel Mac it uses
/usr/local/bin, where the installer puts cue, and it does not install
over that one: remove /usr/local/bin/cue first if you want Homebrew’s.
Homebrew
On macOS 13 or later, on Apple silicon or Intel, Homebrew installs CUE Labs’ build from the CUE Labs tap:
brew install cue-labs/tap/cueIt installs the signed and notarized cue from the latest release’s macOS
archive, after checking the archive against the release’s checksum file.
brew upgrade moves it to each new release. The tap offers stable releases
only, and only for macOS; on Linux, use the Linux archives.
brew install cue, without the tap’s name, installs Homebrew’s own build
of cue, not CUE Labs’ build. If you have that one installed,
Homebrew keeps it linked and says so when you install from the tap. To
switch to CUE Labs’ build:
brew uninstall --formula cue && brew reinstall cue-labs/tap/cueWindows
The installer installs cue for every user of the PC, in
Program Files\CUE, and adds it to the system PATH. Installing a later
version upgrades it in place, and uninstalling it removes both cue and
its PATH entry. The installers, and the cue.exe in each Windows
archive, are signed by CUE Labs.
Download the installer for your PC, cue_v0.18.0_windows_amd64.msi for x86-64, or cue_v0.18.0_windows_arm64.msi for Arm64, and run it.
To install it without its interface, for example from a deployment tool, run these in PowerShell as an administrator:
curl.exe -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_windows_amd64.msi
Start-Process msiexec.exe -Wait -ArgumentList '/i cue_v0.18.0_windows_amd64.msi /qn'curl.exe -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_windows_arm64.msi
Start-Process msiexec.exe -Wait -ArgumentList '/i cue_v0.18.0_windows_arm64.msi /qn'To check the file before you install it, see Checking a download.
Linux
Linux has archives for x86-64 and Arm64. These commands download the one
for your machine and the checksum file, check the archive, and install
cue in /usr/local/bin:
curl -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_linux_amd64.tar.gz
curl -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_checksums.txt
sha256sum --check --ignore-missing cue_v0.18.0_checksums.txt
tar -xzf cue_v0.18.0_linux_amd64.tar.gz cue
sudo install cue /usr/local/bin/curl -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_linux_arm64.tar.gz
curl -fsSLO https://dl.cue.dev/v0.18.0/cue_v0.18.0_checksums.txt
sha256sum --check --ignore-missing cue_v0.18.0_checksums.txt
tar -xzf cue_v0.18.0_linux_arm64.tar.gz cue
sudo install cue /usr/local/bin/Without root, install cue into any directory on your PATH, such as
~/.local/bin, in place of the last command. The Linux archives are not
signed: the checksum file is how you check them. On Windows Subsystem for
Linux, follow these instructions too.
Checking a download
Put the checksum file in the folder that holds your downloads, and run the command for your system there. It checks only the files you downloaded.
sha256sum --check --ignore-missing cue_v0.18.0_checksums.txtshasum -a 256 --check --ignore-missing cue_v0.18.0_checksums.txtGet-Content cue_v0.18.0_checksums.txt | ForEach-Object {
$hash, $file = $_ -split ' '
if (Test-Path $file) {
$ok = (Get-FileHash $file -Algorithm SHA256).Hash -eq $hash
"${file}: $(if ($ok) { 'OK' } else { 'FAILED' })"
}
}Each file you downloaded is listed with OK. Anything else means the file is not the one this release published: download it again.
Checking the signature
The checksum file tells you that a download is intact; the signature
tells you that it is the build CUE Labs published. The macOS
installer and the cue in each macOS archive are signed by CUE Labs and
notarized by Apple; the Windows installers and the cue.exe in each
Windows archive are signed by CUE Labs.
On macOS, check the installer’s signature with pkgutil --check-signature cue_<version>_darwin_all.pkg, or a cue binary’s with codesign --verify --verbose cue; both name CUE Labs as the signer. On Windows, run
Get-AuthenticodeSignature .\cue_<version>_windows_amd64.msi in
PowerShell and check that the status is Valid and the signer is CUE
Labs.
Checking the install
Open a new terminal, so that it has the updated PATH, and run:
cue versionIts first line names the version you installed.
In CI and containers
GitHub Actions
The cue-labs/setup-cue action installs CUE from cue.dev on a
GitHub Actions runner, checked against the release’s published checksums:
- uses: cue-labs/setup-cue@v2
with:
version: latestversion is latest, the default, or a version that the
releases list names, a pre-release included.
The older cue-lang/setup-cue action is retired: v0.18 is the last
version it installs, and it says so in its output. To switch to
CUE Labs’ build, replace its uses: line with the one above.
Scripts of your own
A script that fetches CUE itself finds every release at the download address:
https://dl.cue.dev/latest.txtnames the latest stable version;https://dl.cue.dev/index.jsonlists every version, pre-releases included, in no particular order.
Each file of a version is at https://dl.cue.dev/<version>/<name>, under the names the releases list shows. This script fetches and checks the latest release’s archive for Linux x86-64, and extracts cue from it:
version=$(curl -fsSL https://dl.cue.dev/latest.txt)
curl -fsSLO "https://dl.cue.dev/$version/cue_${version}_linux_amd64.tar.gz"
curl -fsSLO "https://dl.cue.dev/$version/cue_${version}_checksums.txt"
sha256sum --check --ignore-missing "cue_${version}_checksums.txt"
tar -xzf "cue_${version}_linux_amd64.tar.gz" cueName your tool in the User-Agent of its requests, as curl -A my-tool/1.0
does, so that its downloads can be told apart from others.
Containers
The cr.cue.dev/cue image carries CUE Labs’ build, for
x86-64 and Arm64 Linux, with cue as its entrypoint. Its tags are the
versions without their leading v, and latest for the latest stable
release. Each image carries a software bill of materials.
docker run --rm cr.cue.dev/cue:0.18.0 versionThe older cuelang/cue image on Docker Hub is retired: v0.18 is its last
version, and it prints a notice when it runs. To switch to CUE Labs’ build,
change the image’s name and keep its tag.
Pre-releases and older versions
Info
Use the latest release of CUE for stability. Pre-releases are less stable, but help test upcoming features and fixes.
The releases list has every release
from v0.18.0 on, pre-releases included, each with its
downloads and its release notes. To install one of them, use its files in
place of the latest release’s in the commands above, give its version to
setup-cue’s version input, or give the container image its tag.
Releases from before v0.18.0 are on GitHub.