Buf(1)

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

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

okay so you're reading the Buf(1) page, which honestly is just the home base for the whole buf CLI family. This particular page is all about one very specific little icon: buf-ls-files. Pull up a chair, grab a lil iced coffee πŸ“, and let's get into it.


🌸 NAME 🌸

buf-ls-files β€” literally just List Protobuf files. That's the whole job. It lists .proto files. She's simple, she's effective, she's booked and busy. πŸ‘‘


✨ SYNOPSIS ✨

buf ls-files  [flags]

that's it. that's the whole entrance. flags optional, slaying mandatory. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the first argument is the source, module, or image you wanna list from β€” and bestie, it has to be one of these formats, no exceptions:

[binpb,dir,git,json,mod,protofile,tar,txtpb,yaml,zip]

and if you don't pass any argument at all? It defaults to "." β€” like, the current directory, the classic "eh, here's fine" move. 🏠✨


πŸŽ€ OPTIONS πŸŽ€

  • --config="" β€” the buf.yaml file or the raw data you wanna use for configuration. Your call, main character energy either way. πŸ“
  • --disable-symlinks[=false] β€” ngl, this one says: do not follow symlinks when reading sources or configuration from the local filesystem. By default, symlinks are followed in this CLI β€” but they're never followed on the Buf Schema Registry. so like, know the difference, iykyk. πŸ”—
  • --exclude-path=[] β€” exclude specific files or directories, e.g. "proto/a/a.proto", "proto/a". if you specify it multiple times, the union is taken. basically a little blocklist, but make it fashion. πŸ™ˆ
  • --format="text" β€” the format to print the .proto files in. Must be one of [text,json,import]. choose your aesthetic wisely πŸ’…
  • -h, --help[=false] β€” help for ls-files. the "wait what does this do again" button 🫢
  • --include-importable[=false] β€” include all .proto files that are importable by the input. also, --include-imports is redundant if this is set β€” so don't be extra, it's already doing the most. ✨
  • --include-imports[=false] β€” include imports. short, sweet, iconic. πŸ“¦
  • --path=[] β€” limit to specific files or directories, e.g. "proto/a/a.proto", "proto/a". if you specify it multiple times, the union is taken. this is the allowlist to --exclude-path's blocklist, and honestly they're giving sibling energy. 🌈

🌟 OPTIONS INHERITED FROM PARENT COMMANDS 🌟

these bad boys come from the parent command, so they're, like, family heirlooms at this point:

  • --debug[=false] β€” turn on debug logging (env BUF_DEBUG). when you NEED to know what's happening πŸ‘€
  • --log-format="color" β€” the log format: text,color,json ⟨env BUF_LOG_FORMAT⟩. yes she's colorful by default, we love a little ✨aesthetic✨ 🎨
  • --timeout=0s β€” the duration until timing out; setting it to 0 means no timeout. so 0s is the "we die like real ones, or not at all" setting πŸ’€β³

πŸ”₯ SEE ALSO πŸ”₯

  • buf(1) β€” the parent, the origin story, the blueprint. go say hi 🫢

πŸ“œ HISTORY πŸ“œ

2026-10-22 β€” Auto generated by spf13/cobra. not me being literally auto-generated 😭 still ate tho.


heads up bestie: this page was Auto generated by spf13/cobra, dated 2026-10-22, and it belongs to Buf(1). so if something looks sus, that's the lore. πŸ’–

and that's the page!! go list some protobuf files, you absolute legend. πŸ§šβ€β™€οΈπŸŒˆβ­

πŸ“¦ where this page comes from