Tera CLI

Use this skill when the user wants to render Tera templates (Jinja2-like) from the command line.

javimosch 0ead397 959 B Updated

File contents

tera-cli Plugin

CLI for the Tera templating engine. Supports Jinja2-like template syntax with filters, loops, conditions, and inheritance.

Commands

Template Rendering

  • tera-cli template render — Render a Tera template with context data

Usage Examples

  • "Render this Tera template with JSON data"
  • "Use this Jinja2-style template to generate a config"
  • "Substitute variables in a template file"

Installation

cargo install tera-cli

Examples

tera template.txt --context data.json
tera template.txt --context-file data.json --output result.txt
tera template.txt -s key=value

Key Features

  • Jinja2-like template syntax
  • Filter support (length, upper, lower, etc.)
  • Loop and conditional rendering
  • Template inheritance
  • JSON context input
  • Fast Rust implementation

javimosch/supercli/tree/main/plugins/tera-cli/skills/quickstart commit 0ead3971bc

Frequently asked questions

npx skillmds@latest add javimosch/tera-cli