🍺 BREW Explorer

← all formulae

jinja2-cli

brew install jinja2-cli v1.0.1 BSD-2-Clause

CLI for the Jinja2 templating language

121
30-day installs · #3228
680
90-day · #2572
2.4k
365-day · #2632
605
★ GitHub stars · updated 4mo ago

Runtime dependencies

Build dependencies

GitHub topics

cli jinja2 python toml xml yaml

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libyaml",
    "python@3.14"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "CLI for the Jinja2 templating language",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:39:01+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "jinja2-cli",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-04-06T20:38:58Z",
  "github_readme_excerpt": "# $ jinja2\n\nThe CLI for [Jinja2](https://jinja.palletsprojects.com/).\n\n```\n$ jinja2 template.j2 data.json\n$ curl -s http://api.example.com | jinja2 template.j2\n```\n\n## Install\n```\n$ uv tool install jinja2-cli\n$ pip install jinja2-cli\n```\n\n## Formats\nBuilt-in: JSON, INI, ENV, querystring, TOML (Python 3.11+)\n\nOptional formats via extras:\n```\n$ pip install jinja2-cli[yaml]\n$ pip install jinja2-cli[xml]\n$ pip install jinja2-cli[hjson]\n$ pip install jinja2-cli[json5]\n```\n\n## Features\n- Read data from files or stdin\n- Define variables inline with `-D key=value`\n- Custom Jinja2 extensions\n- **Import custom filters** - see [Custom Filters](#custom-filters) below\n- Full control over Jinja2 environment options\n\nRun `jinja2 --help` for all options, or see [docs/](docs/) for full documentation.\n\n## Custom Filters\n\nExtend Jinja2 with your own filters or use Ansible\u0027s extensive filter library:\n\n```bash\n# Use custom filters\n$ jinja2 template.j2 data.json -F myfilters\n\n# Use Ansible filters\n$ jinja2 template.j2 data.json -F ansible.plugins.filter.core\n```\n\nExample filter module:\n```python\n# myfilters.py\ndef reverse(s):\n    return s[::-1]\n\ndef shout(s):\n    return s.upper() + \"!\"\n```\n\nSee [docs/filters.md](docs/filters.md) for complete documentation and examples.\n\n## Used by\n- [Dangerzone](https://github.com/freedomofpress/dangerzone) by Freedom of the Press Foundation\n- [Elastic](https://github.com/elastic/logstash-docker) Docker images (Logstash, Kibana, Beats)\n- [ScyllaDB](https://github.com/scylladb/scylla-machine-image) CloudFormation templates\n- [800+ more](https://github.com/mattrobenolt/jinja2-cli/network/dependents) on GitHub\n\n## Available in\n[![PyPI](https://img.shields.io/pypi/v/jinja2-cli)](https://pypi.org/project/jinja2-cli/)\n[![Homebrew](https://img.shields.io/homebrew/v/jinja2-cli)](https://formulae.brew.sh/formula/jinja2-cli)\n[![nixpkgs](https://img.shields.io/badge/nixpkgs-jinja2--cli-blue)](https://search.nixos.org/packages?query=jinja2-cli)\n[![AUR](https://img.s",
  "github_repo": "mattrobenolt/jinja2-cli",
  "github_stars": 605,
  "github_topics": [
    "cli",
    "jinja2",
    "python",
    "toml",
    "xml",
    "yaml"
  ],
  "homepage": "https://github.com/mattrobenolt/jinja2-cli",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 121,
  "installs_365d": 2401,
  "installs_90d": 680,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-2-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "jinja2-cli",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 3228,
  "rank_365d": 2632,
  "rank_90d": 2572,
  "raw_hash": "6bf90ba5a0ba962b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/j/jinja2-cli.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.0.1",
  "versioned_formulae": [],
  "why_use_this": null
}