Skip to content

buf config migrate

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

Usage

$ buf config migrate [flags]

Description

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

The effects of this command may change over time

Flags

--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.work.yaml, buf.yamls and buf.locks will be migrated

Flags inherited from parent commands

--debug

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

Parent Command