Protobuf Tools
Buf is a tool for Protobuf files:
Linter that enforces good API design choices and structure.
Breaking change detector that enforces compatibility at the source code or wire level
Configurable file builder that produces Images our extension of FileDescriptorSets
Prerequisites
# buf: proto tool https://buf.build/docs/tour-1
brew tap bufbuild/buf
brew install buf
# or use `go get` to install Buf
GO111MODULE=on go get github.com/bufbuild/buf/cmd/bufDeveloper Workflow
Info
# To list all files Buf is configured to use:
buf ls-files
# To see your currently configured lint or breaking checkers:
buf check ls-lint-checkers
buf check ls-breaking-checkers
# To see all available lint checkers independent of configuration/defaults:
buf check ls-lint-checkers --allBuild
Lint
Format
Generate
Read gRPC on Node.js with Buf and TypeScript
Tools
grpcurl
ghz
Reference
Last updated
Was this helpful?