# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cue>
- **版本:** 0.17.1
- **来源摘要:** Validate and define text-based and dynamic configuration
- **主页:** <https://cuelang.org/>
- **仓库:** <https://github.com/cue-lang/cue>
- **上游文档:** <https://cuelang.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/cue-lang/cue.git>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cue (cli)
- cue (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.17.1
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/cue-lang/cue
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [chaiscript](https://pkg.so/zh-hans/brew/chaiscript/) - Shares pkgdb curated category or tags: cli, language, language-runtime.
- [node](https://pkg.so/zh-hans/brew/node/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [gcc](https://pkg.so/zh-hans/brew/gcc/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [pyenv](https://pkg.so/zh-hans/brew/pyenv/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [io](https://pkg.so/zh-hans/brew/io/) - Local package facts share a topical domain. Shared terms: based, cli, dynamic, language, language-runtime.
- [nickel](https://pkg.so/zh-hans/brew/nickel/) - Local package facts share a topical domain. Shared terms: cli, configuration, language, language-runtime, runtime.
- [befunge93](https://pkg.so/zh-hans/brew/befunge93/) - Local package facts share a topical domain. Shared terms: based, cli, language, language-runtime, runtime.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
