Buf(1)

πŸ“¦
version 1.75.0 Β· 3 versions
, in arch rolling

πŸ’… Buf(1) β€” like, the manual page bestie πŸŽ€

Okay so this is Buf(1), and honestly? It's giving "auto-generated but make it cute." Buckle up, we're talking about buf config init and you're gonna slay this.


✨ NAME ✨

buf-config-init β€” the little command that sets up your buf configuration files so your local dev era can officially begin. πŸ¦‹


🌸 SYNOPSIS 🌸

buf config init [buf.build/owner/foobar] [flags]

That's it. That's the whole vibe check. You can pass it a buf.build/owner/foobar-sized argument or flags (or both, no cap β€” the brackets are just being polite).


πŸ’– DESCRIPTION πŸ’–

So here's the tea: this command writes a brand new buf.yaml file to kickstart your local development. Fresh file, fresh start, main character energy. ✨

Now, important caveat bestie β€” if a buf.yaml already exists, this command will not overwrite it. Nope, it's not gonna touch your stuff. Instead it will produce an error. So it's respectful, but also dramatic about it. 😭

Also lowkey a heads-up: the effects of this command may change over time β€” like, it may initialize other files such as buf.gen.yaml files in the future. So what it does today isn't a forever promise. πŸ™ˆ


⭐ OPTIONS ⭐

  • -h, --help[=false] β€” shows you the help for init. Your classic "wait what does this do again" button. 🫢
  • -o, --output="." β€” The directory to write the configuration files to. Default is "." (aka right here, where you're standing). πŸŽ€

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

These come from the parent command, so they're like, family traits. πŸ’œ

  • --debug[=false] β€” Turn on debug logging. Defaults to false. (env BUF_DEBUG) πŸ›
  • --log-format="color" β€” The log format β€” pick from text, color, json. Defaults to color. (env BUF_LOG_FORMAT) 🌈
  • --timeout=0s β€” The duration until timing out. Setting it to 0 means no timeout. Defaults to 0s. (env BUF_TIMEOUT) ⏰

πŸ¦‹ SEE ALSO πŸ¦‹

buf-config(1) β€” go read that one next, iykyk. πŸ’«


🧚 HISTORY 🧚

2026-10-22 β€” Auto generated by spf13/cobra. The robots did this one, not me. πŸ’€


Fr fr though: don't try to overwrite an existing buf.yaml with this. It won't, and it'll error at you. Respect the boundary. πŸ’…

Auto generated by spf13/cobra Β· 2026-10-22 Β· Buf(1) β€” okay that's the whole page bestie, you ate that, periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from