Protobuf Tools

Buf is a tool for Protobuf files:

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/buf

Developer 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 --all

Build

Lint

Format

Generate

Read gRPC on Node.js with Buf and TypeScript

Tools

grpcurl

ghz

Reference

Last updated

Was this helpful?