buf config migrate

Migrate all buf.yaml,, buf.gen.yaml, and buf.lock files at the specified directories or paths to v2


$ buf config migrate [flags]


If no flags are specified, the current directory is searched for buf.yamls,, and buf.gen.yamls.

The effects of this command may change over time


--buf-gen-yaml strings

The paths to the buf.gen.yaml generation templates to migrate

-d, --diff

Write a diff to stdout instead of migrating files on disk. Useful for performing a dry run.

-h, --help

help for migrate

--module strings

The module directories to migrate. buf.yaml and buf.lock will be migrated

--workspace strings

The workspace directories to migrate., buf.yamls and buf.locks will be migrated

Flags inherited from parent commands


Turn on debug logging

--log-format string

The log format [text,color,json]

--timeout duration

The duration until timing out, setting it to zero means no timeout

-v, --verbose

Turn on verbose mode

Parent Command