Files
yq/pkg/yqlib/doc/usage/headers/hcl.md
T

443 B

HCL

Encode and decode to and from HashiCorp Configuration Language (HCL).

HCL is commonly used in HashiCorp tools like Terraform for configuration files. The yq HCL encoder and decoder support:

  • Blocks and attributes
  • String interpolation and expressions (preserved without quotes)
  • Comments (leading, head, and line comments)
  • Nested structures (maps and lists)
  • Syntax colorization when enabled