# HCL

> The HashiCorp configuration language

Source: https://talira.ai/catalog/hcl-pczpmjqa
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Programming language
- Categories: [developer tools / programming languages / configuration](https://talira.ai/categories/developer-tools/programming-languages/configuration)
- Licence: MPL-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Paradigms: Declarative, configuration[^2]
- Latest release: 2.25.0 (15 Sep 2026)[^3]
- Backed by: [HashiCorp](https://talira.ai/orgs/hashicorp.md)
- Funding: acquired by IBM (2025)[^4]

HCL (HashiCorp Configuration Language) is a toolkit for building structured configuration languages that people and machines can both read and write, aimed mainly at devops tools and servers. It has a native syntax of attributes and nested blocks, inspired by libucl and nginx configuration, plus a JSON-based variant for machine-generated files, and an expression syntax for inline computation; the application that embeds it defines the expected structure and the variables and functions available. It's the language of [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md) and [OpenTofu](https://talira.ai/catalog/opentofu-1ntqfn2x.md) files, among other HashiCorp tools. This listing covers the specification and its Go implementation (`github.com/hashicorp/hcl/v2`, HCL 2, whose Go API is incompatible with version 1). MPL-2.0 licensed.

## Links

- GitHub: https://github.com/https://github.com/hashicorp/hcl
- Docs: https://pkg.go.dev/github.com/hashicorp/hcl/v2

## Libraries for HCL

Talira doesn't list any yet.

## Problems it solves

- a human-friendly config file format for my command-line tool or server
- parse structured config with blocks and expressions in my Go program
- which config language should my devops tool use instead of YAML
- generate or edit Terraform-style configuration files programmatically

## Features

- native syntax of attributes and nested blocks
- JSON-based variant for machine-generated configuration
- expression syntax with application-provided variables and functions
- application-defined schemas with clear error messages
- Go API from a simple decoder (hclsimple) down to low-level parsing
- hclwrite for generating and editing HCL files
- a written specification

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 0.84, adoption 0.75, momentum 0.49, community 0.83, backing 0.55, extensibility 0.00.

- last commit 22 days ago
- 36 commits in the last 90 days
- latest release v2.25.0 2 months ago
- 5.8k GitHub stars
- 118 contributors
- backed by HashiCorp
- funding: acquired by IBM (2025)

## Alternatives

- [Pkl](https://talira.ai/catalog/pkl-85gnh4vy.md): A configuration-as-code language with rich validation and tooling
- [CUE](https://talira.ai/catalog/cue-3grjf0fr.md): Validate, define, and use dynamic and text-based data
- [Jsonnet](https://talira.ai/catalog/jsonnet-j43k4twn.md): A configuration language for app and tool developers
- [KCL](https://talira.ai/catalog/kcl-hq9kgy2r.md): An open-source constraint-based record and functional language for configuration and policy
- [Starlark](https://talira.ai/catalog/starlark-wvv3bmfb.md): A Python dialect designed as a configuration language, made for Bazel
- [Nickel](https://talira.ai/catalog/nickel-6h57zkq8.md): Better configuration for less

## Sources

[^1]: https://github.com/hashicorp/hcl/blob/main/LICENSE (checked 24 Nov 2026)
[^2]: https://github.com/hashicorp/hcl (checked 24 Nov 2026)
[^3]: https://github.com/hashicorp/hcl/releases/tag/v2.25.0 (checked 24 Nov 2026)
[^4]: https://newsroom.ibm.com/2025-02-27-ibm-completes-acquisition-of-hashicorp,-creates-comprehensive,-end-to-end-hybrid-cloud-platform (checked 20 Nov 2026)
