JSONNET(1) User Commands JSONNET(1)

# [NAME](#NAME)

Jsonnet - manual page for Jsonnet commandline interpreter v0.22.0

# [DESCRIPTION](#DESCRIPTION)

Jsonnet commandline interpreter v0.22.0

jsonnet {&lt;option&gt;} &lt;filename&gt;

## [Available options:](#Available_options:)

[**-h** / **--help**](#h)

This message

[**-e** / **--exec**](#e)

Treat filename as code

[**-J** / **--jpath** &lt;dir&gt;](#J)

Specify an additional library search dir (right-most wins)

**-o** / **--output-file** &lt;file&gt; Write to the output file rather than stdout

[**-m** / **--multi** &lt;dir&gt;](#m)

Write multiple files to the directory, list files on stdout

[**-y** / **--yaml-stream**](#y)

Write output as a YAML stream of JSON documents

[**-S** / **--string**](#S)

Expect a string, manifest as plain text

[**--no-trailing-newline**](#no)

Do not add a trailing newline to the output

[**-s** / **--max-stack** &lt;n&gt;](#s)

Number of allowed stack frames

[**-t** / **--max-trace** &lt;n&gt;](#t)

Max length of stack trace before cropping

[**--gc-min-objects** &lt;n&gt;](#gc)

Do not run garbage collector until this many

**--gc-growth-trigger** &lt;n&gt; Run garbage collector after this amount of object growth

[**--version**](#version)

Print version

Available options for specifying values of 'external' variables: Provide the value as a string:

[**-V** / **--ext-str** &lt;var&gt;\[=&lt;val&gt;\]](#V)

If &lt;val&gt; is omitted, get from environment var &lt;var&gt;

**--ext-str-file** &lt;var&gt;=&lt;file&gt; Read the string from the file

## Provide a value as Jsonnet code:

[**--ext-code** &lt;var&gt;\[=&lt;code&gt;\]](#ext)

If &lt;code&gt; is omitted, get from environment var &lt;var&gt;

**--ext-code-file** &lt;var&gt;=&lt;file&gt; Read the code from the file

Available options for specifying values of 'top-level arguments': Provide the value as a string:

[**-A** / **--tla-str** &lt;var&gt;\[=&lt;val&gt;\]](#A)

If &lt;val&gt; is omitted, get from environment var &lt;var&gt;

**--tla-str-file** &lt;var&gt;=&lt;file&gt; Read the string from the file

## Provide a value as Jsonnet code:

[**--tla-code** &lt;var&gt;\[=&lt;code&gt;\]](#tla)

If &lt;code&gt; is omitted, get from environment var &lt;var&gt;

**--tla-code-file** &lt;var&gt;=&lt;file&gt; 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: &lt;filename&gt; 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".

September 2026 Jsonnet commandline interpreter v0.22.0

---

Document: jsonnet(1) from jsonnet 0.22.0-r0 (Chainguard OS)
