Linux / macOS

How to install Roc

  1. Download the roc install script and execute it:

    curl --proto '=https' --tlsv1.2 -sSf https://roc-lang.org/install_roc.sh | sh 
    
  2. In a new terminal, download and run hello world:

    curl --proto '=https' --tlsv1.2 -OL https://raw.githubusercontent.com/roc-lang/roc/refs/heads/main/test/echo/hello.roc
    roc hello.roc
    

Next Steps