Buf(1)
π
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=""β thebuf.yamlfile 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.protofiles in. Must be one of[text,json,import]. choose your aesthetic wisely π-h,--help[=false]β help forls-files. the "wait what does this do again" button π«Ά--include-importable[=false]β include all.protofiles that are importable by the input. also,--include-importsis 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 (envBUF_DEBUG). when you NEED to know what's happening π--log-format="color"β the log format:text,color,jsonβ¨envBUF_LOG_FORMATβ©. yes she's colorful by default, we love a little β¨aestheticβ¨ π¨--timeout=0sβ the duration until timing out; setting it to0means no timeout. so0sis 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 byspf13/cobra, dated2026-10-22, and it belongs toBuf(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
- 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