# Install cue with Homebrew, MacPorts, Nix, pacman, scoop, winget

Validate and define text-based and dynamic configuration. Version 0.17.1 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#cue.

## Install

```sh
sudo av install brew:cue
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cue
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cue
```

  Evidence: MacPorts ports tree: devel/cue/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cue
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cu/cue/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cue
```

  Evidence: Arch Linux sync databases: cue from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/cue
```

  Evidence: Scoop official bucket manifest trees: bucket/cue.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id CueLang.Cue -e
```

  Evidence: Windows Package Manager source index: CueLang.Cue from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:cue
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cue>
- **Version:** 0.17.1
- **Source summary:** Validate and define text-based and dynamic configuration
- **Homepage:** <https://cuelang.org/>
- **Repository:** <https://github.com/cue-lang/cue>
- **Upstream docs:** <https://cuelang.org/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/cue-lang/cue.git>
- **Last updated:** 2026-07-25T14:20:52-04:00
- **Generated:** 2026-07-26T07:20:29+00:00

## Executables

- cue (cli)
- cue (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-26
- Package-manager version: 0.17.1
- Package-manager updated: 2026-07-25
- Local data: ok
- Upstream repository: https://github.com/cue-lang/cue
- info: No cached GitHub release or tag data was available.
## Project history and usage

CUE is an open-source data validation language, inference engine, and command-line tool for schemas, configuration, policy, and data transformation.

### Project history

The CUE documentation traces the language's roots to GCL, Google's configuration language for Borg, and to graph unification techniques used for large declarative systems. CUE returns to a constraint-based approach where types and values are unified in one model.

### Adoption history

The project positions CUE for validation, configuration, querying, code generation, scripting, and integration with formats such as Go, JSON, YAML, TOML, XML, OpenAPI, Protobuf, and JSON Schema. The public cue-lang/cue repository was created in 2021, while the repository README carries copyright notices beginning in 2018.

### How it is used

The cue command validates data, evaluates CUE files, vets configuration, generates or extracts schemas, and acts as the package's main user-facing interface. Official installation docs include release binaries, source installs, and container images.

### Why package nerds care

CUE matters to package maintainers because it is both a language implementation and a standalone CLI used in build, validation, and configuration pipelines. The upstream README explicitly advises downstream packagers to build from git tags so cue version metadata is embedded correctly.

### Timeline

- 2018: CUE repository README copyright period begins.
- 2021: Public cue-lang/cue repository created on GitHub.
- 2020s: Official docs present CUE as a data validation language and inference engine rooted in GCL and graph unification.

### Related projects

- GCL, Borg, Kubernetes-era configuration systems, Go modules, JSON Schema, OpenAPI, Protobuf.

### Sources

- <https://cuelang.org/docs/>
- <https://cuelang.org/docs/introduction/>
- <https://github.com/cue-lang/cue>
- <https://api.github.com/repos/cue-lang/cue>
- <https://raw.githubusercontent.com/cue-lang/cue/master/README.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cue
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - cue: normalized package name match | nixpkgs package indexes: pkgs/by-name/cu/cue/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cue - 0.16.1-1: normalized package name match | Arch Linux sync databases: cue from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Validate and define text-based and dynamic configuration | https://github.com/cue-lang/cue
- MacPorts - cue: normalized package name match | MacPorts ports tree: devel/cue/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/cue: normalized package name match | Scoop official bucket manifest trees: bucket/cue.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - CueLang.Cue: normalized package name match | Windows Package Manager source index: CueLang.Cue from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [chaiscript](https://www.automicvault.com/pkg/brew/chaiscript/) - Shares av.db curated category or tags: cli, language, language-runtime.
- [abcl](https://www.automicvault.com/pkg/brew/abcl/) - Shares av.db curated category or tags: cli, language-runtime.
- [agda](https://www.automicvault.com/pkg/brew/agda/) - Shares av.db curated category or tags: cli, language-runtime.
- [alda](https://www.automicvault.com/pkg/brew/alda/) - Shares av.db curated category or tags: cli, language-runtime.
- [algol68g](https://www.automicvault.com/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, language-runtime.
- [ammonite-repl](https://www.automicvault.com/pkg/brew/ammonite-repl/) - Shares av.db curated category or tags: cli, language-runtime.
- [arf](https://www.automicvault.com/pkg/brew/arf/) - Shares av.db curated category or tags: cli, language-runtime.
- [arturo](https://www.automicvault.com/pkg/brew/arturo/) - Shares av.db curated category or tags: cli, language-runtime.
- [io](https://www.automicvault.com/pkg/brew/io/) - Local package facts share a topical domain. Shared terms: based, cli, dynamic, language, language-runtime.
- [nickel](https://www.automicvault.com/pkg/brew/nickel/) - Local package facts share a topical domain. Shared terms: cli, configuration, language, language-runtime, runtime.
- [awk](https://www.automicvault.com/pkg/brew/awk/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, runtime, text.

## Combined YAML source

View the package source record on GitHub. [combined/cue.yml](https://github.com/automic-vault/db/blob/main/combined/cue.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
