yq/pkg/yqlib/doc/usage/headers/hcl.md
2025-12-08 11:42:07 +11:00

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