- Add
buf export
.buf export
will export the files from the specified input (default"."
) to the given directory in a manner that is buildable byprotoc
without any-I
flags. It also has options--exclude-imports
, which excludes imports (and won't result in a buildable set of files), and--path
, which filters to the specific paths.