| JSONNET(1) | User Commands | JSONNET(1) |
Jsonnet - Jsonnet data templating language interpreter
Jsonnet commandline interpreter v0.20.0
jsonnet {<option>} <filename>
-o / --output-file <file> Write to the output file rather than stdout
--gc-growth-trigger <n> Run garbage collector after this amount of object growth
Available options for specifying values of 'external' variables: Provide the value as a string:
--ext-str-file <var>=<file> Read the string from the file
--ext-code-file <var>=<file> Read the code from the file
Available options for specifying values of 'top-level arguments': Provide the value as a string:
--tla-str-file <var>=<file> Read the string from the file
--tla-code-file <var>=<file> Read the code from the file
Environment variables: JSONNET_PATH is a colon (semicolon on Windows) separated list of directories added in reverse order before the paths specified by --jpath (i.e. left-most wins) E.g. 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
In all cases: <filename> can be - (stdin) Multichar options are expanded e.g. -abc becomes -a -b -c. The -- option suppresses option processing for subsequent arguments. Note that since filenames and jsonnet programs can begin with -, it is advised to use -- if the argument is unknown, e.g. jsonnet -- "$FILENAME".
The full documentation for Jsonnet is maintained as a Texinfo manual. If the info and Jsonnet programs are properly installed at your site, the command
should give you access to the complete manual.
| June 2025 | Jsonnet commandline interpreter v0.20.0 |