Installation Guide

System Requirements

Download and Installation Steps

Windows

    # Download the installer
    curl -O https://hcl-lang.org/downloads/hcl-windows-x64.exe
      
    # Run the installer
    ./hcl-windows-x64.exe
      
    # Add to PATH (automatically done by installer)
    # Or manually add: C:\Program Files\HCL\bin
      

macOS

    # Using Homebrew
    brew tap hcl-lang/hcl
    brew install hcl
      
    # Or download directly
    curl -O https://hcl-lang.org/downloads/hcl-macos.pkg
    sudo installer -pkg hcl-macos.pkg -target /
      

Linux

    # Ubuntu/Debian
    wget https://hcl-lang.org/downloads/hcl-linux-amd64.deb
    sudo dpkg -i hcl-linux-amd64.deb
      
    # Fedora/RHEL
    wget https://hcl-lang.org/downloads/hcl-linux.rpm
    sudo rpm -i hcl-linux.rpm
      
    # From source
    git clone https://github.com/hcl-lang/hcl.git
    cd hcl && make install
      

Testing Installation

Verify HCL is installed correctly:

    hcl --version
    # Expected output: HCL version 1.0.0
      

Setting up PATH

If the hcl command is not recognized, add it to your PATH:

    # Linux/macOS (add to ~/.bashrc or ~/.zshrc)
    export PATH="$PATH:/usr/local/bin/hcl"
      
    # Windows (PowerShell as Administrator)
    [Environment]::SetEnvironmentVariable(
      "Path",
      $env:Path + ";C:\Program Files\HCL\bin",
      "Machine"
    )