Template crates.io Github status

CLI for templating based on JSON, YAML or HCL configuration.

Inspired by Consul Template, Sprig, Handlebars, Mustache, and the Kotlin, Rust Go and Python standard libraries.

Installation

Cargo

Install with shell cargo install template-cli

Precompiled binaries

You can download a pre-compiled binaries for multiple architectures and operating systems from the Latest Release page.

Docker

The binaries are shipped as Docker images.

In the usage instructions below, replace all usages of template with docker run --rm ghcr.io/hiddewie/template.

Usage

shell template --template ./path/to/template.template --configuration ./path/to/configuration.json

Show the usage information with the --help option: shell template --help which outputs: ```text CLI for templating based on JSON, YAML or HCL configuration

Usage: template [OPTIONS] --template