Installing the home assistant CLI

There is a CLI available at https://github.com/home-assistant/cli

I did

sudo apt update && sudo apt upgrade
sudo apt-get install git
sudo apt-get install golang
go get -d github.com/home-assistant/cli

but still no ha command found. What am I missing ?

Ok, figured it out

Still needed to do:
cd /root/go/src/github.com/home-assistant/cli/
go build main.go
mv main ha
export SUPERVISOR_ENDPOINT=http://localhost:8123/api/hassio
create a long lived api token longandsafesecret
export SUPERVISOR_API_TOKEN=longandsafesecret
cp ha /usr/bin

Now it is working