pkg.soopen package index

brew / 排名 1179

使用 Homebrew, apk, Nix, pacman, scoop 安装 yamlfmt

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install yamlfmt

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add yamlfmt

Alpine Linux edge package indexes · yamlfmt · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#yamlfmt

nixpkgs package indexes · pkgs/by-name/ya/yamlfmt/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S yamlfmt

Arch Linux sync databases · yamlfmt · 来源: geo.mirror.pkgbuild.com

Windows

Scoop已验证 · 92%
scoop install main/yamlfmt

Scoop official bucket manifest trees · bucket/yamlfmt.json · 来源: api.github.com

概览

软件包摘要

Extensible command-line tool to format YAML files

命令和别名

  • yamlfmt

历史

项目历史与用法

Google yamlfmt is a Go command-line formatter and library for YAML files. Its goals are explicit: be easy to distribute as a single binary, be extensible with custom formatters, and be usable as a library foundation for teams that need a customized YAML formatter.

项目历史

The repository was created on 2022-08-10. The README describes the project as an extensible formatter rather than only a fixed style tool: users can run the `yamlfmt` command, install it as a pre-commit hook, use a container image, or build on the library APIs.

The project grew around formatter backends and configuration. The default `basic` formatter serializes YAML through a fork of gopkg.in/yaml.v3, while the `kyaml` formatter targets Kubernetes YAML style. The docs also record caveats around YAML directives, anchors, aliases, line breaks, and line-length behavior, showing the practical complexity behind YAML formatting.

采用历史

yamlfmt has a broad package-manager footprint in the supplied data, including Homebrew, Nix, apk, pacman, and Scoop. Its README also presents Go installation, release binaries, pre-commit integration, and a container image, which fits modern developer-tool adoption through local hooks and CI checks.

The repository lives under the Google organization but the README states that it is not officially supported by Google and is maintained primarily by an individual maintainer in spare time. That makes it an interesting case where a high-visibility org namespace helped adoption of a still-community-paced developer tool.

使用方式

Basic usage is `yamlfmt x.yaml y.yaml ...` or `yamlfmt .`, where directories are searched recursively for `.yaml` and `.yml` files. The `-dstar` mode enables doublestar glob matching, and `-lint` supports CI workflows that check formatting without rewriting files.

Configuration is discovered from a `-conf` flag, the working directory, ancestor directories, or a system config directory. Supported config filenames include `.yamlfmt`, `yamlfmt.yml`, `yamlfmt.yaml`, `.yamlfmt.yaml`, and `.yamlfmt.yml`.

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

yamlfmt is package-nerd significant because it packages the messy YAML-formatting problem as a distributable Go binary with docs for hooks, containers, global config, and release artifact verification.

It also represents the split in YAML tooling between generic style normalization and domain-specific formats such as Kubernetes KYAML, a distinction that matters to maintainers choosing formatter defaults for large repositories.

时间线

  • 2022-08-10: GitHub repository created.
  • 2020s: Project goals documented around single-binary distribution, custom formatter extension, and library use.
  • 2020s: Configuration discovery documented across local project files, ancestor search, and platform config directories.
  • 2020s: README documented pre-commit, container, and CI usage patterns.

Related projects

  • Related projects and technologies include gopkg.in/yaml.v3, Kubernetes KYAML, pre-commit, bmatcuk/doublestar, cosign, and container-based CI runners.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
.yamlfmtyamlfmt.ymlyamlfmt.yaml.yamlfmt.yaml.yamlfmt.yml$XDG_CONFIG_HOME/yamlfmt/.yamlfmt~/.config/yamlfmt/.yamlfmt
Windows
%LOCALAPPDATA%\yamlfmt\.yamlfmt

可执行文件

已安装的可执行文件

命令类型暴露范围备注
yamlfmtcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本0.21.0
管理器更新时间2026-07-25
本地数据OK
上游当前
检测到的最新版本v0.21.0

https://github.com/google/yamlfmt

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:yamlfmt
版本0.21.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/yamlfmt
主页https://github.com/google/yamlfmt
仓库https://github.com/google/yamlfmt
许可证Apache-2.0
源码归档https://github.com/google/yamlfmt/archive/refs/tags/v0.21.0.tar.gz
最后更新2026-07-25T21:32:48+02:00
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameyamlfmt
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

yamlfmt

nix profile install nixpkgs#yamlfmt
  • normalized package name match
  • 匹配方式:Yamlfmt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ya/yamlfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

yamlfmt 0.21.0-r6

An extensible command line tool or library to format yaml files

https://github.com/google/yamlfmt

sudo apk add yamlfmt
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: yamlfmt
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yamlfmt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yamlfmt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

yamlfmt-doc 0.21.0-r6

An extensible command line tool or library to format yaml files (documentation)

https://github.com/google/yamlfmt

sudo apk add yamlfmt-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: yamlfmt
  • normalized package name match
  • 匹配方式:Yamlfmt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yamlfmt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

yamlfmt 0.21.0-1

An extensible command line tool or library to format yaml files.

https://github.com/google/yamlfmt

sudo pacman -S yamlfmt
  • License: Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yamlfmt
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: yamlfmt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
Scoop95%

main/yamlfmt

scoop install main/yamlfmt
  • normalized package name match
  • 匹配方式:Yamlfmt
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/yamlfmt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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