Install Heroku CLI on Clear Linux

Hello, I’m relatively new to Clear Linux and I’ve been trying to install the Heroku CLI to no avail. I first looked it up in Software/Flatpak repository but couldn’t find any bundle or package for it at the time. I tried running the shell script they provide on the link but it fails with the following error (possibly because of Clear being stateless?):
ln: failed to create symbolic link '/usr/local/bin/heroku': No such file or directory

Does anyone know how to do this?

Looks like you might have to create /usr/local/bin first - try sudo mkdir -p /usr/local/bin before using that installer. (Does it need sudo?)