j2cli
Command-line interface to Jinja2 for templating in shell scripts.
Decision gist · record as of 2026-08-14
No. While j2cli works and has low install friction, it is unmaintained since 2019 with an archived repository. The project's own documentation recommends using actively maintained forks (jinjanator, jinja2-cli, or jj2cli) instead. Install one of those alternatives unless you have a specific reason to use this exact version.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with low friction—a single wheel dependency on jinja2.
- However, the project is abandoned as of 2019 with no active maintenance, and the repository is archived.
- The description explicitly recommends actively maintained forks instead.
License · maintenance · safety
BSD (permissive) — Licensed under BSD (permissive), which allows commercial and private use with minimal restrictions, though you should verify the exact BSD variant in the source.
last release 2019-06-07 (2625 days) · last repo commit 2024-06-24 · 748 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,766,060 downloads/mo, #3,578 on PyPI
Alternatives
Verify before relying
pip install j2cli
# Render template with JSON data:
j2 -f json config.j2 data.json > config.conf
# Or render using environment variables:
export HOSTNAME=localhost
j2 config.j2- Whether the archived codebase has known security issues or compatibility problems with modern Python versions beyond what OSV reports.
- Whether the recommended forks (jinjanator, jinja2-cli, jj2cli) are true drop-in replacements or require workflow changes.
What it is and what it does
j2cli is a command-line wrapper around Jinja2 that lets you render templates from the shell without writing Python code. It accepts a Jinja2 template file and data in JSON, YAML, INI, or environment variable format, then outputs the rendered result. The tool is particularly useful in Docker and shell scripting contexts where you need to generate configuration files dynamically from structured data or environment variables.
The package depends only on jinja2 and optionally pyyaml for YAML support. It supports custom Jinja2 filters, tests, and environment customization through Python hook files. However, the project has been unmaintained since 2019 and its repository is now archived—the maintainer explicitly recommends using one of several actively maintained forks instead.
Use it for
- Generate nginx or Apache configuration files from JSON/YAML templates in Docker containers at startup.
- Render application config files from environment variables in CI/CD pipelines without shell variable expansion.
- Template shell scripts or systemd unit files with data from structured config files.
- Batch-generate multiple configuration variants from a single template and different data sources.
- Inject secrets or runtime values into configuration templates using environment variables or data files.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
While j2cli works and has low install friction, it is unmaintained since 2019 with an archived repository. The project's own documentation recommends using actively maintained forks (jinjanator, jinja2-cli, or jj2cli) instead. Install one of those alternatives unless you have a specific reason to use this exact version.
Install
j2cli on PyPI
Before you install
Installation is straightforward with low friction—a single wheel dependency on jinja2. However, the project is abandoned as of 2019 with no active maintenance, and the repository is archived. The description explicitly recommends actively maintained forks instead.
License in practice
Licensed under BSD (permissive), which allows commercial and private use with minimal restrictions, though you should verify the exact BSD variant in the source.
Quickstart
pip install j2cli
# Render template with JSON data:
j2 -f json config.j2 data.json > config.conf
# Or render using environment variables:
export HOSTNAME=localhost
j2 config.j2
Verify before relying
- Whether the archived codebase has known security issues or compatibility problems with modern Python versions beyond what OSV reports.
- Whether the recommended forks (jinjanator, jinja2-cli, jj2cli) are true drop-in replacements or require workflow changes.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagejinja2 |
| Maintenance | Abandoned 2,625 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 1,766,060 / month, #3,578 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development |
Evidence: j2cli-0.3.10-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “template rendering shell scripts”
- j2clij2cli is a command-line tool that renders Jinja2 templates using data…
- envtplRenders Jinja2 templates on the command line, substituting shell…
- jinja2-cliA command-line interface for Jinja2 templating that renders templates…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also anyconfig · envtpl · jinja2-cli · jinjanator · crudini · ruamel.yaml.jinja2 · jinja-cli · crossplane · j2lint · django-jinja