jinja2-cli

CLI tool for rendering Jinja2 templates from the command line

brewmacoslinux
Try with needOr install directly
Source

About

CLI for the Jinja2 templating language

Commands

jinja2

Examples

Render a template with variables from JSON file$ jinja2 template.j2 data.json
Render a template with inline YAML variables$ jinja2 template.j2 --format=yaml variables.yaml
Render a template with environment variables$ jinja2 template.j2 -e ENVIRONMENT=production