REPROTO-INSTANTIATE-SCHEMA(1)
okay so bestie π welcome to the reproto-instantiate-schema(1) manual β yes, that's the manual name up top, and the header is giving User Commands realness. This tool is a little generator with main character energy: it reads a compiled .desc FileDescriptorSet and pops out pseudo-random binary protobuf instances. Slay. Let's go. β¨
π NAME π
reproto-instantiate-schema β generate pseudo-random binary protobuf instances from a FileDescriptorSet. That's the whole job, no cap. π
β¨ SYNOPSIS β¨
reproto-instantiate-schema [OPTIONS] FQDNS...
literally the shape of it: options plus one or more FQDNS, periodt.
π¦ DESCRIPTION π¦
okay so here's the vibe: reproto-instantiate-schema reads a compiled .desc FileDescriptorSet and generates one pseudo-random binary protobuf instance per fully-qualified message type name supplied. One per FQDN, bestie. π₯
Each instance is written to <output-root>/<fqdn-with-dots-as-slashes>.pb. So the FQDN's dots become slashes, and the file gets .pb on the end β path goals. π
Types that produce empty instances (e.g. messages with no fields) are silently skipped. Ghosted. No announcement, no file. π»
π ARGUMENTS π
FQDNSβ one or more fully-qualified message type names to instantiate (e.g.google.type.PostalAddress). You gotta use the whole government name, not a nickname. π
π OPTIONS π
--descriptor-set FILEβ path to the.descFileDescriptorSet to load.[env: PROTOTEXT_DESCRIPTOR_SET]β that's the env hookup, iykyk.-O,--output-root DIRECTORYβ root directory for output files (default: current directory). Put your output root where you want it.--seed INTEGERβ PRNG seed (default:0). The seed is the seed, bestie.--max-depth INTEGERβ maximum recursion depth for nested messages (default:4). Nested-message depth limit, default4.--max-repeated INTEGERβ maximum number of elements for repeated fields (default:3). Default3elements max for repeated fields.--quiet,-qβ suppress per-file progress messages. Peace out, progress spam. π€«--versionβ print version and exit. Bye.--helpβ show a help message and exit. The classic.
π ENVIRONMENT π
PROTOTEXT_DESCRIPTOR_SETβ path to a.descFileDescriptorSet used as the default when--descriptor-setis not provided. So if you don't pass the flag, it looks here. πPROTOTEXT_DEFAULT_DESCRIPTORβ accepted as a deprecated fallback. It's deprecated, bestie β still accepted as a fallback, but don't make it your whole personality. π
π EXAMPLES π
Generate two instances using the googleapis DB:
reproto-instantiate-schema --descriptor-set googleapis.desc --seed 42 \
-O out/ google.type.PostalAddress google.protobuf.Timestamp
Two instances, googleapis.desc, seed 42, output root out/, and the two FQDNs. Cute. β¨
π₯ SEE ALSO π₯
go read those too, bestie. π«Ά
xoxo, reproto 0.3.6 β dated 2026 π β¨
π¦ where this page comes from
- nixpkgs unstable: reproto 0.3.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms