Windows

How to install Roc

  1. Open a PowerShell Terminal (you can press Win + X → Terminal).

  2. Download and run the Roc installer script:

    irm https://roc-lang.org/install_roc.ps1 | iex
    

    If your PowerShell says scripts are blocked, run PowerShell as Administrator just for the install, or start it like this:

    powershell -ExecutionPolicy Bypass
    
  3. Close that PowerShell window and open a new one so the updated PATH is picked up.

  4. In the new PowerShell, download and run Hello World:

    curl.exe -OL https://raw.githubusercontent.com/roc-lang/roc/refs/heads/main/test/echo/hello.roc
    roc hello.roc
    

Next Steps