Instead of using the CLI binary, I decided to use the docker container available at docker hub:
https://hub.docker.com/r/rancher/cli2. Now facing a different issue. I first need to issue the login command to the container with token etc. After login, the container exists and cannot run the next command. They have done a really bad job of documenting how to use this container