jinja-cli
a command line interface to jinja;
What it is and what it does
jinja-cli is a thin command-line wrapper around Jinja2 that lets you render templates without writing Python code. You provide a template file (or stdin), data in one of several formats (JSON, YAML, XML, INI), and the tool outputs the rendered result to stdout or a file. Data can come from a file, environment variables, command-line key-value pairs, or regex-matched environment variables, with clear precedence rules for how sources are merged.
It's useful for scripting, build pipelines, and configuration generation where you want template rendering without a full application framework. The tool is small and straightforward—it depends on Jinja2, PyYAML, xmltodict, and argparse-ext. It has not been actively maintained since late 2021, though the codebase is stable and has no known security issues.
Use it for:
- Generate configuration files from templates and environment variables in CI/CD pipelines
- Render HTML or text templates with data from JSON or YAML files in shell scripts
- Populate template-based code generators or scaffolding tools from command-line arguments
- Transform XML or INI data into formatted output using Jinja2 syntax
- Build static site generators or documentation tools that need template rendering without a framework
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool that renders Jinja2 templates with data from files, environment variables, or command-line arguments, supporting JSON, YAML, XML, and INI formats.
Yes, if you need lightweight command-line template rendering and don't mind a dormant project. The package is stable, has low install friction, no vulnerabilities, and a small dependency footprint. GPLv3 licensing is a consideration if you're building proprietary tools. The lack of recent maintenance is not a blocker for simple use cases, but don't expect bug fixes or new features.
Install
jinja-cli on PyPI
pip
pip install jinja-cliuv
uv add jinja-clipoetry
poetry add jinja-cliInstalling jinja-cli
Before you install
Low install friction with a pure Python wheel. The package is dormant (last release 2021-12-25, last commit 2023-11-13) but has no known vulnerabilities and depends on stable, widely-used libraries.
License in practice
Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be GPLv3; using this as a library in proprietary code requires careful review of your license obligations.
Quickstart
pip install jinja-cli
# Render template with JSON data file
jinja -d data.json template.j2
# Or pass data via command line
jinja -D key value template.j2
Verify before relying
- Whether the package works reliably with Python versions beyond those listed in classifiers (3.6–3.10)
- Performance characteristics when rendering large templates or processing large data files
- Whether argparse-ext introduces any undocumented dependencies or compatibility issues
Package facts
| License | not declared (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — Jinja2, PyYAML, argparse-ext, xmltodict |
| Maintenance | dormant — 1,693 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 195,804/month — #9,805 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jinja_cli-1.2.2-py3-none-any.whl
Keywords: jinja, engine, interface, template
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
jinjanatorA command-line tool that renders Jinja2…
permissive · top 5,000 on PyPI
jinja2-cliA command-line interface for Jinja2 templating…
permissive · top 5,000 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
j2clij2cli is a command-line tool that renders…
permissive · top 5,000 on PyPI
ruamel.yaml.jinja2Enables Jinja2 templating within YAML files by…
permissive · top 5,000 on PyPI
copierCopier is a template engine and CLI tool that…
permissive · top 5,000 on PyPI
envtplRenders Jinja2 templates on the command line,…
copyleft · top 15,000 on PyPI
jinjasqlGenerates parameterized SQL queries from Jinja2…
permissive · top 15,000 on PyPI
vsdxvsdx reads, modifies, and creates Microsoft…
permissive · top 15,000 on PyPI
ChameleonChameleon is an HTML/XML template engine that…
permissive · top 15,000 on PyPI