# 使用 Homebrew, MacPorts, Nix, pacman, scoop, winget 安装 cue

查看 cue 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cue
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cue
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:cue
- **软件包管理器:** Homebrew
- **版本:** 0.17.1
- **来源摘要:** Validate and define text-based and dynamic configuration
- **主页:** <https://cuelang.org/>
- **仓库:** <https://github.com/cue-lang/cue>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cue (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.17.1
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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


## Combined YAML source

View the package source record on GitHub. [combined/cue.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cue.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
