[{"data":1,"prerenderedAt":275},["ShallowReactive",2],{"family-hcl":3,"family-members-hcl":234,"family-siblings":249},{"id":4,"title":5,"author":6,"body":7,"description":189,"extension":197,"family":198,"features":199,"homepage":205,"logo":206,"meta":207,"name":5,"navigation":208,"note":209,"path":210,"references":211,"relations":206,"seo":229,"status":230,"stem":231,"urls":206,"year":232,"__hash__":233},"families\u002Ffamilies\u002Fhcl.md","HCL","Mitchell Hashimoto (HashiCorp)",{"type":8,"value":9,"toc":188},"minimark",[10,15,24,28,94,98,163,174,178,181,185],[11,12,14],"h2",{"id":13},"overview","Overview",[16,17,18,19,23],"p",{},"The HCL family is a notation plus a toolkit. HCL defines no built-in resource\ntypes; it defines ",[20,21,22],"em",{},"bodies"," — blocks and attributes — and hands them to a calling\napplication that declares which attribute names and nested block types it\nexpects. Every member inherits that split between syntax and schema, so the\nfamily's members differ in what they do with a body, not in how they read one.",[11,25,27],{"id":26},"distinctive-traits","Distinctive traits",[29,30,31,43,49,60,78,88],"ul",{},[32,33,34,38,39,42],"li",{},[35,36,37],"strong",{},"Syntax without semantics."," HCL is explicitly a ",[20,40,41],{},"toolkit",": the application\nsupplies variable values, functions, and the schema, so an HCL file alone\ncannot be validated — only parsed.",[32,44,45,48],{},[35,46,47],{},"Two concrete syntaxes, one model."," The native syntax and the JSON profile\nserialize the same bodies, so machine-generated configuration and\nhand-authored configuration mix in one configuration set.",[32,50,51,54,55,59],{},[35,52,53],{},"An expression sub-language, not a program."," Arithmetic, comparison,\nconditionals, ",[56,57,58],"code",{},"for"," expressions and splats are expressions; there is no\nstatement, loop, or assignment to sequence them with.",[32,61,62,65,66,69,70,73,74,77],{},[35,63,64],{},"Template interpolation inside strings."," ",[56,67,68],{},"${…}"," interpolation and\n",[56,71,72],{},"%{ for }"," \u002F ",[56,75,76],{},"%{ if }"," directives make a string a small template, including\nheredocs with strip markers.",[32,79,80,83,84,87],{},[35,81,82],{},"Unknown values are first-class."," Evaluation can defer: a value may be\n",[20,85,86],{},"unknown"," of a known type, which is what lets a member plan an operation\nbefore every input is knowable.",[32,89,90,93],{},[35,91,92],{},"Type conversion and unification are specified, not incidental."," Safe and\nunsafe conversions, and the most general type two values unify to, are part\nof the information model, so independent implementations agree.",[11,95,97],{"id":96},"members-and-what-each-one-changed","Members and what each one changed",[99,100,101,117],"table",{},[102,103,104],"thead",{},[105,106,107,111,114],"tr",{},[108,109,110],"th",{},"Language",[108,112,113],{},"Relationship to HCL",[108,115,116],{},"What it changed",[118,119,120,135,149],"tbody",{},[105,121,122,129,132],{},[123,124,125],"td",{},[126,127,5],"a",{"href":128},"\u002Flanguages\u002Fhcl",[123,130,131],{},"the notation itself — v1 (2014) and v2 (2020)",[123,133,134],{},"the block\u002Fattribute body, the expression and template sub-languages, the JSON profile",[105,136,137,143,146],{},[123,138,139],{},[126,140,142],{"href":141},"\u002Flanguages\u002Fterraform","Terraform",[123,144,145],{},"first consumer, and the reason HCL exists",[123,147,148],{},"added resources, providers, state, and the plan\u002Fapply cycle on top of the notation",[105,150,151,157,160],{},[123,152,153],{},[126,154,156],{"href":155},"\u002Flanguages\u002Fopentofu","OpenTofu",[123,158,159],{},"the MPL-licensed fork of Terraform",[123,161,162],{},"kept the same bodies and expressions, added client-side state encryption and its own registry",[16,164,165,166,169,170,173],{},"The recurring move is ",[20,167,168],{},"holding the notation still",": OpenTofu's compatibility\npromise is measured in ",[56,171,172],{},".tf"," files that parse unchanged, and Terraform's own\nbreak with HCL 1 was a change of library and parser, not of the shape of a\nconfiguration.",[11,175,177],{"id":176},"status","Status",[16,179,180],{},"Active through both members. The toolkit is at HCL 2.x under the MPL 2.0; the\nnative syntax specification and the syntax-agnostic information model are\npublished in the repository, and the JSON profile is a supported input format\nrather than a compatibility shim.",[11,182,184],{"id":183},"history","History",[16,186,187],{},"HCL and its predecessor HIL (the interpolation language) were written for\nTerraform in 2014; the repository's first commit is dated August 2014. HCL 2\nmerged HCL 1 with HIL into a single language with arbitrary expressions and a\nnew parser and Go API, released as v2.0.0 in January 2020. The family changed\nshape in 2023: HashiCorp moved Terraform to the Business Source License, and the\ncommunity fork that became OpenTofu kept the notation while changing the\nlicence and the governance.",{"title":189,"searchDepth":190,"depth":190,"links":191},"",2,[192,193,194,195,196],{"id":13,"depth":190,"text":14},{"id":26,"depth":190,"text":27},{"id":96,"depth":190,"text":97},{"id":176,"depth":190,"text":177},{"id":183,"depth":190,"text":184},"md","hcl",[200,201,202,203,204],"blocks-and-attributes","expression-sub-language","template-interpolation","json-serialization","application-defined-schema","https:\u002F\u002Fgithub.com\u002Fhashicorp\u002Fhcl",null,{},true,"The family defined by one notation: blocks and attributes, plus an expression and template sub-language the host application evaluates. Terraform and OpenTofu both parse it and attach their own schemas to the same bodies.","\u002Ffamilies\u002Fhcl",[212,214,217,220,223,226],{"url":205,"title":213},"HCL — the HashiCorp configuration language (repository, README, information model)",{"url":215,"title":216},"https:\u002F\u002Fgithub.com\u002Fhashicorp\u002Fhcl\u002Fblob\u002Fmain\u002Fhclsyntax\u002Fspec.md","HCL Native Syntax Specification",{"url":218,"title":219},"https:\u002F\u002Fgithub.com\u002Fhashicorp\u002Fhcl\u002Fblob\u002Fmain\u002Fspec.md","HCL syntax-agnostic Information Model",{"url":221,"title":222},"https:\u002F\u002Fgithub.com\u002Fhashicorp\u002Fhcl\u002Fblob\u002Fmain\u002Fjson\u002Fspec.md","HCL JSON Representation",{"url":224,"title":225},"https:\u002F\u002Fgithub.com\u002Fhashicorp\u002Fhcl\u002Freleases\u002Ftag\u002Fv2.0.0","HCL v2.0.0 release notes (3 January 2020)",{"url":227,"title":228},"https:\u002F\u002Fopentofu.org\u002Fmanifesto\u002F","The OpenTofu Manifesto — why the fork exists",{"title":5,"description":189},"active","families\u002Fhcl",2014,"LC3_bAGPSgvT8HO1V7q4b72OJFkx2fdpLjAXytarWDc",[235,240,245],{"name":5,"path":128,"logo":206,"year":232,"kind":236,"status":230,"note":237,"paradigms":238,"typing":206},"language","A syntax and API for building structured configuration languages: bodies of blocks and attributes plus an expression and template sub-language, with the application supplying the schema and functions.",[239],"declarative",{"name":142,"path":141,"logo":206,"year":232,"kind":236,"status":230,"note":241,"paradigms":242,"typing":206},"HashiCorp's infrastructure-as-code language: a declarative configuration of resources in HCL, resolved through providers into a dependency graph, diffed as a plan, and applied against a recorded state file.",[239,243,244],"domain-specific","modular",{"name":156,"path":155,"logo":206,"year":246,"kind":236,"status":230,"note":247,"paradigms":248,"typing":206},2023,"The MPL-licensed fork of Terraform, governed by the Linux Foundation: the same HCL configuration and plan\u002Fapply cycle, plus client-side state and plan encryption and its own provider registry.",[239,243,244],[250,253,256,259,260,263,266,269,272],{"name":251,"path":252},"ALGOL","\u002Ffamilies\u002Falgol",{"name":254,"path":255},"C","\u002Ffamilies\u002Fc",{"name":257,"path":258},"ECMAScript","\u002Ffamilies\u002Fecmascript",{"name":5,"path":210},{"name":261,"path":262},"Lisp","\u002Ffamilies\u002Flisp",{"name":264,"path":265},"ML","\u002Ffamilies\u002Fml",{"name":267,"path":268},"OBJ","\u002Ffamilies\u002Fobj",{"name":270,"path":271},"PL\u002FI","\u002Ffamilies\u002Fpl-i",{"name":273,"path":274},"Smalltalk","\u002Ffamilies\u002Fsmalltalk",1795219071673]