Jinja CLI

1.2.2 · active · verified Fri Apr 17

Jinja CLI (current version 1.2.2) provides a command-line interface for rendering Jinja2 templates. It allows users to pass data via JSON, YAML, or environment variables and render templates directly from the terminal. The project is actively maintained with infrequent but stable releases, primarily serving as a wrapper for Jinja2.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates creating a simple Jinja2 template file and then rendering it from the command line using `jinja-cli`, passing data via the `--data` flag.

echo "Hello {{ name }}! Today is {{ day }}." > template.j2
jinja --data '{"name": "World", "day": "Friday"}' template.j2

view raw JSON →