Back to Yq

HCL

pkg/yqlib/doc/usage/headers/hcl.md

4.53.2441 B
Original Source

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 colorisation when enabled