Buf(1)
π NAME π
okay so bestie, welcome to Buf(1) β the manual page for buf-push, aka Push to a registry. no cap, this is the one where you send your stuff up to a registry. π
β¨ SYNOPSIS β¨
buf push [flags]
π¦ DESCRIPTION π¦
The first argument is the source to push, and it must be one of format [dir,git,protofile,tar,zip]. If you donβt give an argument at all, it defaults to "." β iconic, honestly. π«Ά
π OPTIONS π
--create[=false]β Create the module if it does not exist. Defaults to creating a private module if--create-visibilityis not set.--create-default-label=""β The moduleβs default label setting, if created. If this is not set, then the module will be created with the default label"main".--create-visibility="private"β The moduleβs visibility setting, if created. Can only be set with--create. Must be one of[public,private].--disable-symlinks[=false]β Do not follow symlinks when reading sources or configuration from the local filesystem. By default, symlinks are followed in this CLI, but never followed on the Buf Schema Registry.--error-format="text"β The format for build errors printed to stderr. Must be one of[text,json,msvs,junit,github-actions,gitlab-code-quality].--exclude-unnamed[=false]β Only push named modules to the BSR. Named modules must not have any unnamed dependencies.--git-metadata[=false]β Uses the Git source control state to set flag values. If this flag is set, we will use the following values for your flags:--source-control-urlto<git remote URL>/<repository name>/<route>/<checked out commit sha>(e.g.https://github.com/acme/weather/commit/ffac537e6cbbf934b08745a378932722df287a53).--labelfor each Git tag and branch pointing to the currently checked out commit. You can set additional labels using--labelwith this flag.--create-default-labelto the Git default branch (e.g.main) - this is only in effect if--createis also set.- heads up, bestie: The source control URL and default branch is based on the required Git remote
"origin". This flag is only compatible with checkouts of Git source repositories. If you set the--source-control-urlflag and/or--create-default-labelflag yourself, then the value(s) will be used instead and the information will not be derived from the Git source control state.
-h,--help[=false]β help for push.--label=[]β Associate the label with the modules pushed. Can be used multiple times.--source-control-url=""β The URL for viewing the source code of the pushed modules (e.g. the specific commit in source control).
π OPTIONS INHERITED FROM PARENT COMMANDS π
--debug[=false]β Turn on debug logging (envBUF_DEBUG).--log-format="color"β The log formattext,color,jsonβ¨envBUF_LOG_FORMATβ©.--timeout=0sβ The duration until timing out, setting it to0means no timeout (envBUF_TIMEOUT).
π₯ SEE ALSO π₯
π HISTORY π
2026-10-22 β Auto generated by spf13/cobra.
mwah π β this page was Auto generated by spf13/cobra, and the date on it is 2026-10-22. bye bestie! π«Ά
π¦ where this page comes from
- arch rolling: buf 1.75.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms