Install the Buf CLI
To install the Buf CLI, you can either use an installation script or download and extract an archive file from the command line that corresponds to the version of your operating system.
You can install buf
on macOS or Linux using Homebrew:
sh
brew install bufbuild/buf/buf
This installs:
- The binaries
buf
,protoc-gen-buf-breaking
,protoc-gen-buf-lint
. - Bash completion for
buf
. - Fish completion for
buf
. - Zsh completion for
buf
.