DOKK / manpages / debian 12 / j2cli / j2.1.en
J2CLI(1) User Commands J2CLI(1)

j2cli - Command line tool for templating in shell-scripts

usage: j2 [-h] [-v] [-f {?,ini,json,yaml,env}] [-e VAR]

[--filters python-file [python-file ...]] [--tests python-file [python-file ...]] [--customize python-file.py] [--undefined] [-o outfile] template [data]

Command-line interface to Jinja2 for templating in shell scripts.

Template file to process
Input data file path; "-" to use stdin

show this help message and exit
show program's version number and exit
Input data format
Import environment variables as `var` variable. Use empty string to import into the top level
Load custom Jinja2 filters from a Python file: all top-level functions are imported.
Load custom Jinja2 tests from a Python file.
A Python file that implements hooks to fine-tune the j2cli behavior
Allow undefined variables to be used in templates (no error will be raised)
Output to a file instead of stdout

The full documentation for j2cli is maintained as a Texinfo manual. If the info and j2cli programs are properly installed at your site, the command

info j2cli

should give you access to the complete manual.

September 2022 j2cli 0.3.12b0, Jinja2 2.11.3