Scroll to navigation

J2CLI(1) User Commands J2CLI(1)

NAME

j2cli - Command line tool for templating in shell-scripts

DESCRIPTION

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.

positional arguments:

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

optional arguments:

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

SEE ALSO

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