Windows
How to install Roc
-
Open a PowerShell Terminal (you can press Win + X → Terminal).
-
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
-
Close that PowerShell window and open a new one so the updated PATH is picked up.
-
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
- Tutorial
- Examples (still on Roc alpha 4)
- Frequently Asked Questions
- Roc Exercism Track (still on Roc alpha 4)