# Template ![crates.io](https://img.shields.io/crates/v/template-cli.svg) ![Github status](https://github.com/hiddewie/template/actions/workflows/ci.yml/badge.svg) CLI for templating based on JSON, YAML or HCL configuration. Inspired by [Consul Template](https://github.com/hashicorp/consul-template), [Sprig](https://github.com/Masterminds/sprig), [Handlebars](https://github.com/handlebars-lang/handlebars.js), [Mustache](https://mustache.github.io/), [Jinja](https://jinja.palletsprojects.com), and the [Kotlin](https://kotlinlang.org/docs/home.html), [Rust](https://doc.rust-lang.org/std/) [Go](https://pkg.go.dev/std) and [Python](https://docs.python.org/3/library/) 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](https://github.com/hiddewie/template/releases/latest). ### Docker The binaries are shipped as [Docker images](https://github.com/hiddewie/template/pkgs/container/template). 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