凭据访问
Reads registry tokens, environment variables, and project schema files.
代理安全
buf manages protobuf linting, generation, and registry workflows.
Reads registry tokens, environment variables, and project schema files.
Can push modules and interact with remote schema registries.
Can publish schema modules and generated artifacts.
Gate push, registry login, and token-backed commands.
Allow lint/generate; require approval for registry writes and token use.
安装
brew install buflocal Homebrew formula metadata
sudo apk add bufAlpine Linux edge package indexes · buf · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#bufnixpkgs package indexes · pkgs/by-name/bu/buf/package.nix · 来源: api.github.com
sudo pacman -S bufArch Linux sync databases · buf · 来源: geo.mirror.pkgbuild.com
scoop install main/bufScoop official bucket manifest trees · bucket/buf.json · 来源: api.github.com
winget install --id bufbuild.buf -eWindows Package Manager source index · bufbuild.buf · 来源: cdn.winget.microsoft.com
概览
New way of working with Protocol Buffers
历史
Buf is a modern Protocol Buffers toolchain centered on the `buf` CLI, replacing many direct `protoc` workflows with module-aware builds, linting, breaking-change detection, formatting, code generation, dependency management, API calls, and access to the Buf Schema Registry.
Buf was created by Buf Technologies as a developer-tooling layer for Protobuf projects. Its public repository presents it as a modern toolchain for Protobuf rather than a replacement for the schema language itself: it keeps the plugin model familiar to `protoc` users while adding workspace configuration, deterministic checks, and registry-aware workflows.
The project grew beyond a formatter or wrapper into a broader ecosystem: the CLI, Buf Schema Registry, remote plugins, generated SDKs, ConnectRPC, Protobuf-ES, and Protovalidate are all positioned by Buf as related pieces of schema-driven API infrastructure.
Buf adoption followed the pain points of larger Protobuf users: teams wanted one repeatable command for compiling, linting, compatibility checks, and generation instead of per-repository shell scripts around `protoc -I` paths. The CLI is distributed through Homebrew, npm, Docker, Windows installers, binary downloads, tarballs, source builds, and other package managers listed in the input.
Registry features widened its role from local CLI tooling to organization-level schema governance. The Buf Schema Registry stores modules, renders documentation, resolves dependencies, hosts remote plugins, produces generated SDKs, and can enforce schema checks for teams that publish APIs there.
Typical CLI use starts with `buf config init`, then `buf build`, `buf format -w`, `buf lint`, `buf breaking --against ...`, and `buf generate`. Projects commonly check in `buf.yaml`, `buf.gen.yaml`, and `buf.lock` so CI and developer laptops run the same Protobuf workflow.
Core CLI features work without a Buf Schema Registry account, while signing in adds private module dependency resolution, remote plugins, generated SDKs, hosted documentation, and server-side checks.
Buf matters to package-tooling people because it treats `.proto` files as versioned modules instead of loose source files copied between repos. It brings package-lock and registry patterns familiar from language ecosystems into Protobuf schema distribution.
It is also a notable example of a package manager formula that installs not only the main `buf` binary but companion protoc plugins, making Homebrew a convenient entry point for Protobuf linting and compatibility checks.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Credential-bearing paths to review before unattended agent runs.
~/.netrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
buf | cli | 全局可执行文件 | |
protoc-gen-buf-breaking | cli | 全局可执行文件 | |
protoc-gen-buf-lint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/bufbuild/buf
安装元数据
| 软件包键 | brew:buf |
|---|---|
| 版本 | 1.72.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/buf |
| 主页 | https://buf.build |
| 仓库 | https://github.com/bufbuild/buf |
| 上游文档 | https://buf.build/docs/cli |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/bufbuild/buf/archive/refs/tags/v1.72.0.tar.gz |
| 最后更新 | 2026-07-17T20:53:06Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | buf |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
buf
nix profile install nixpkgs#bufbuf 1.59.0-r6
CLI to work with Protocol Buffers
sudo apk add bufbuf-bash-completion 1.59.0-r6
Bash completions for buf
sudo apk add buf-bash-completionbuf-fish-completion 1.59.0-r6
Fish completions for buf
sudo apk add buf-fish-completionbuf-protoc-plugins 1.59.0-r6
CLI to work with Protocol Buffers (protoc plugins)
sudo apk add buf-protoc-pluginsbuf-zsh-completion 1.59.0-r6
Zsh completions for buf
sudo apk add buf-zsh-completionbuf 1.70.0-1
A tool for working with Protocol Buffers
sudo pacman -S bufbuf
sudo port install bufmain/buf
scoop install main/bufbufbuild.buf
winget install --id bufbuild.buf -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.