# 使用 Homebrew, MacPorts, scoop, winget 安装 config-file-validator

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

## 安装

```sh
sudo av install brew:config-file-validator
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install config-file-validator
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install config-file-validator
```

  证据: MacPorts ports tree: sysutils/config-file-validator/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/config-file-validator
```

  证据: Scoop official bucket manifest trees: bucket/config-file-validator.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Boeing.config-file-validator -e
```

  证据: Windows Package Manager source index: Boeing.config-file-validator from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:config-file-validator
- **软件包管理器:** Homebrew
- **版本:** 2.3.0
- **来源摘要:** CLI tool to validate different configuration file types
- **主页:** <https://boeing.github.io/config-file-validator/>
- **仓库:** <https://github.com/Boeing/config-file-validator>
- **最后更新:** 2026-07-27T22:04:03+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- validator (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Config File Validator is a Boeing-published CLI for validating configuration files across many formats. It recursively searches directories, detects formats by extension or known filename, and reports syntax, schema, and CI-friendly output.

### 项目历史

The project is maintained as an Apache-2.0 Go command and library. Its README describes support for 18 formats, schema validation through JSON Schema, XSD, and SchemaStore, and integration surfaces such as GitHub Actions, pre-commit, SARIF, JUnit, JSON output, and a Go library API.

The 2.x changelog records a shift from simple syntax/format checking into a broader configuration-validation platform: schema maps, SchemaStore lookup, SARIF output, JSONC, stdin support, exit-code granularity, and project-level .cfv.toml configuration.

### 采用历史

Official installation instructions list Homebrew, Winget, MacPorts, Scoop, Go install, and binary releases for macOS, Linux, and Windows. That breadth makes the tool unusually package-manager-visible for a validator whose main use is inside repositories and CI jobs.

### 使用方式

Common usage is to run validator against a repository or directory tree, optionally constrained by file types, schema maps, ignore files, and reporter output. The .cfv.toml file lets projects commit validation defaults instead of repeating CLI flags in CI.

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

For package and tooling curators, Config File Validator is notable because it treats configuration files themselves as the package surface: it knows common filenames through GitHub Linguist data, validates extensionless files, and emits outputs that package CI systems can consume directly.

### 时间线

- 2025: v1.9.0 added a changelog, JSON formatting checks, and TOON validation.
- 2026: v2.0.0 added schema validation for JSON, YAML, TOML, and TOON, XML schema support, type maps, schema maps, SchemaStore, SARIF, and no-schema mode.
- 2026: v2.2.0 added .cfv.toml discovery, JSONC support, pre-commit support, embedded SchemaStore catalog support, and zero-setup remote schema fetching.
- 2026: later 2.x work added a documentation website, GitHub reporter output, ignore-file support, and automatic known-file detection from GitHub Linguist.

### Related projects

- Official documentation and README connect the tool to JSON Schema, XSD, SchemaStore, GitHub Actions, pre-commit, SARIF, GitHub Linguist, and Go.

### 来源

- <https://github.com/Boeing/config-file-validator#readme>
- <https://boeing.github.io/config-file-validator>
- <https://boeing.github.io/config-file-validator/docs/guides/configuration-file>
- <https://boeing.github.io/config-file-validator/docs/reference/known-files>
- <https://github.com/Boeing/config-file-validator/blob/main/CHANGELOG.md>
- <https://github.com/Boeing/config-file-validator/releases>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./.cfv.toml
## 其他软件包管理器记录

- MacPorts - config-file-validator: normalized package name match | MacPorts ports tree: sysutils/config-file-validator/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/config-file-validator: normalized package name match | Scoop official bucket manifest trees: bucket/config-file-validator.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Boeing.config-file-validator: normalized package name match | Windows Package Manager source index: Boeing.config-file-validator from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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