Getting Started

Install CUE on your machine.

The Go APIs can be used as is using Go’s package manager.

The cue binary can be installed using one of the following methods.

Binary install

Download from GitHub

Binaries for various operating systems, including Linux, Windows, and Mac OS can be downloaded from CUE releases section on Github.

Install using homebrew

In addition, CUE can be installed with using brew on MacOS and Linux:

brew install cuelang/tap/cue

Installation on Arch Linux

For Arch Linux the community maintains a Arch User Repository package called cuelang-bin:

yay -S cuelang-bin

Install CUE from source


Go 1.12 or higher (see below)

Installing CUE

To download and install the cue command line tool run

go get -u

And make sure the install directory is in your path.

To also download the API and documentation, run

go get -u

Installing Go

Download Go

You can load the binary for Windows, MacOS X, and Linux at If you use a different OS you can install Go from source.

Install Go

Follow the instructions at Make sure the go binary is in your path. CUE uses Go modules, so there is no need to set up a GOPATH.