Download the roc install script and execute it:
curl --proto '=https' --tlsv1.2 -sSf https://roc-lang.org/install_roc.sh | sh
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