# Install consul-template with Homebrew, apk, chocolatey, Nix, pacman

Generic template rendering and notifications with Consul. Version 0.42.0 via Homebrew; verified 2026-04-15.

## Install

```sh
sudo av install brew:consul-template
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install consul-template
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add consul-template
```

  Evidence: Alpine Linux edge package indexes: consul-template from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#consul-template
```

  Evidence: nixpkgs package indexes: pkgs/by-name/co/consul-template/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S consul-template
```

  Evidence: Arch Linux sync databases: consul-template from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install consul-template
```

  Evidence: Chocolatey community package catalog: consul-template from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='10.5272','w10privacy'

## Package facts

- **Package key:** brew:consul-template
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/consul-template>
- **Version:** 0.42.0
- **Source summary:** Generic template rendering and notifications with Consul
- **Homepage:** <https://github.com/hashicorp/consul-template>
- **Repository:** <https://github.com/hashicorp/consul-template>
- **Upstream docs:** <https://github.com/hashicorp/consul-template#readme>
- **License:** MPL-2.0
- **Source archive:** <https://github.com/hashicorp/consul-template/archive/refs/tags/v0.42.0.tar.gz>
- **Last updated:** 2026-04-15T15:11:29Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- consul-template (cli)
- consul-template (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.42.0
- Package-manager updated: 2026-04-15
- Local data: ok
- Upstream repository: https://github.com/hashicorp/consul-template
- Upstream latest detected: v0.42.0 (current)
## Project history and usage

Consul Template is a HashiCorp daemon and CLI that renders files from Consul, Vault, and Nomad data, then optionally runs commands after changes. It became a standard bridge between service discovery/configuration data and traditional config-file driven software.

### Project history

HashiCorp released Consul Template 0.1.0 in October 2014. The README still states the core idea: query a Consul, Vault, or Nomad cluster and update any number of templates on the filesystem.

The early changelog shows rapid hardening after launch: 0.2.0 added file and key-prefix helpers, tree and ls functions, string helpers, and more examples; 0.5.0 added SIGHUP reload and service-listing support. Later releases added Vault, Nomad, Consul namespace/partition/peering features, imported services, and security fixes.

### Adoption history

Consul Template found adoption in infrastructure stacks that needed dynamic data in ordinary files. Its README recommends running it as a system service, explains why automatic reload-on-file-change is intentionally avoided, and points users toward examples, configuration docs, templating docs, Docker use, and community support.

Input package metadata lists Consul Template for Homebrew, apk, Chocolatey, Nix, and pacman, reflecting its cross-platform single-binary packaging model.

### How it is used

Common usage is to run consul-template with template mappings such as source:destination:command, render configuration files from Consul KV or service catalog data, and restart or reload services such as nginx or haproxy when rendered output changes.

The README also documents once mode, reload via SIGHUP, environment variables shared with Consul, Vault, and Nomad tooling, and version-specific documentation through Git tags.

### Why package nerds care

Consul Template matters because it packages dynamic infrastructure state into the oldest Unix deployment interface: files on disk plus a signal or command. That made it useful before every application learned service discovery APIs directly.

For package maintainers, it is a classic HashiCorp Go binary: upstream releases, version-specific docs, service-manager usage, Docker images, and a web of compatibility with Consul, Vault, Nomad, and downstream config consumers.

### Timeline

- 2014: Version 0.1.0 is released as the initial Consul Template release.
- 2014: Version 0.5.0 adds SIGHUP reload and services template support.
- 2023: Version 0.35.0 adds alpha support for Consul namespaces, partitions, and peering.
- 2025: Version 0.41.x adds Consul imported services support and file sandbox security work.
- 2026: Version 0.42.0 continues security and dependency maintenance.

### Related projects

- Consul is the original data source named in the project name.
- Vault and Nomad are first-class data sources in the README.
- haproxy and nginx are common destination-service examples in the README's reload discussion.

### Sources

- <https://github.com/hashicorp/consul-template>
- <https://github.com/hashicorp/consul-template/blob/main/CHANGELOG.md>
- <https://github.com/hashicorp/consul-template/blob/main/docs/configuration.md>
- <https://github.com/hashicorp/consul-template/blob/main/docs/templating-language.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** consul-template
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - consul-template: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/consul-template/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - consul-template - 0.42.0-r1: normalized package name match | Alpine Linux edge package indexes: consul-template from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generic template rendering and notifications with Consul | https://www.consul.io/
- apk - consul-template-openrc - 0.42.0-r1: normalized package name match | Alpine Linux edge package indexes: consul-template-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generic template rendering and notifications with Consul (OpenRC init scripts) | https://www.consul.io/
- pacman - consul-template - 0.42.0-1: normalized package name match | Arch Linux sync databases: consul-template from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Template rendering, notifier, and supervisor for HashiCorp Consul and Vault data | https://github.com/hashicorp/consul-template
- Chocolatey - consul-template: normalized package name match | Chocolatey community package catalog: consul-template from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='10.5272','w10privacy'


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [kconf](https://www.automicvault.com/pkg/brew/kconf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration.
- [kubetrim](https://www.automicvault.com/pkg/brew/kubetrim/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration.
- [naml](https://www.automicvault.com/pkg/brew/naml/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration.
- [vals](https://www.automicvault.com/pkg/brew/vals/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration.
- [nomad-pack](https://www.automicvault.com/pkg/brew/nomad-pack/) - Shares av.db curated category or tags: cli, cloud-infrastructure, nomad, templating.
- [qbec](https://www.automicvault.com/pkg/brew/qbec/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration.
- [actions-batch](https://www.automicvault.com/pkg/brew/actions-batch/) - Shares av.db curated category or tags: automation, cli, cloud-infrastructure.
- [ansible](https://www.automicvault.com/pkg/brew/ansible/) - Shares av.db curated category or tags: automation, cli, cloud-infrastructure.
- [consul-backinator](https://www.automicvault.com/pkg/brew/consul-backinator/) - Package names and metadata indicate a similar tool family. Shared terms: cli, cloud, cloud-infrastructure, consul, infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/consul-template.yml](https://github.com/automic-vault/db/blob/main/combined/consul-template.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
