JSONNET(1)
π JSONNET(1) π
okay bestie, we're doing the Jsonnet manual page and honestly? it's giving data-templating royalty π
β¨ NAME β¨
Jsonnet β the Jsonnet data templating language interpreter, and yes she's that girl πΈ
π¦ DESCRIPTION π¦
So. This is the Jsonnet commandline interpreter v0.22.0 β¨ and here's how you summon her:
jsonnet {<option>} <filename>
That's it. That's the whole vibe check. Now let's get into the options because there are a LOT and we are going to list every single one, periodt π
π Available options:
-h/--helpβ literally just shows you this message, the "hey bestie here's what I can do" of it all πββοΈ-e/--execβ treats<filename>as code instead of a file. no cap.-J/--jpath <dir>β adds an extra library search dir. the right-most wins, so keep that in mind iykyk π-o/--output-file <file>β writes to the output file instead of stdout. taking the scenic route instead of the terminal route, obsessed π-m/--multi <dir>β writes multiple files into the directory, and lists the files on stdout. multitasking queen π-y/--yaml-streamβ writes output as a YAML stream of JSON documents. so fancy β¨-S/--stringβ expects a string and manifests it as plain text. keep it simple, keep it cute π--no-trailing-newlineβ do not add a trailing newline to the output. if you know you know π-s/--max-stack <n>β number of allowed stack frames. stack overflow protection era π-t/--max-trace <n>β max length of stack trace before it gets cropped. aesthetic cropping only π--gc-min-objects <n>β do not run the garbage collector until this many. she waits patiently π§--gc-growth-trigger <n>β run the garbage collector after this amount of object growth. now she's got main character energy π₯--versionβ prints the version. flexing time π
π«Ά Available options for specifying values of 'external' variables:
Provide the value as a string:
-V/--ext-str <var>[=<val>]β if<val>is omitted, get it from the environment var<var>πΈ--ext-str-file <var>=<file>β read the string from the file. file-based, lowkey elegant π
π§ Provide a value as Jsonnet code:
--ext-code <var>[=<code>]β if<code>is omitted, get it from the environment var<var>β¨--ext-code-file <var>=<file>β read the code from the file. code, but make it a file π
π Available options for specifying values of 'top-level arguments':
Provide the value as a string:
-A/--tla-str <var>[=<val>]β if<val>is omitted, get it from the environment var<var>β--tla-str-file <var>=<file>β read the string from the file π¦
πΈ Provide a value as Jsonnet code:
--tla-code <var>[=<code>]β if<code>is omitted, get it from the environment var<var>π--tla-code-file <var>=<file>β read the code from the file π
π Environment variables
JSONNET_PATH is a colon-separated list of directories (semicolon on Windows, ok cross-platform queen) added in reverse order before the paths specified by --jpath, which means left-most wins.
For example:
JSONNET_PATH=a:b jsonnet -J c -J d
is equivalent to:
JSONNET_PATH=d:c:a:b jsonnet jsonnet -J b -J a -J c -J d
likeβ¦ look at her reordering her whole life and still serving π
π₯ In all cases:
<filename>can be-, which means stdin. iconic behaviour.- Multichar options get expanded, e.g.
-abcbecomes-a -b -c. she unpacks it π - The
--option suppresses option processing for the subsequent arguments.
β οΈ heads up bestie: since filenames and jsonnet programs can begin with-, it is advised to use--if the argument is unknown, like so:jsonnet -- "$FILENAME". this is the "no babe it's not a flag it's a file" protection spell π«Ά
and that's the page, fr fr π this was Jsonnet commandline interpretβ¦, September 2026, tagged JSONNET(1) β go template something gorgeous, bestie, you got this πβ¨
π¦ where this page comes from
- ubuntu stonking: jsonnet 0.22.0+ds-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms