Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

The Buf logo

Remote plugin execution

Note

You need to have the buf CLI installed to follow along with this example.

This directory contains example code for Buf's generating code with remote plugins tutorial, where you can learn to generate code stubs from a Buf input using Protobuf plugins.

Here, we'll use two remote plugins hosted on the Buf Schema Registry:

Plugin Language
protocolbuffers/go Go
protocolbuffers/java Java

You can use the buf CLI, in conjunction with the configuration in buf.gen.yaml, to generate code stubs from any valid Buf input. Let's try it with the buf.build/buf-examples/observabilityapi module from the workspace example:

buf generate buf.build/buf-examples/observabilityapi

The remote plugin execution was designed to avoid the pitfalls of using locally installed plugins.