I'm trying to login to the GitHub cli tool using gh auth login as per the docs (https://cli.github.com/manual/gh_auth_login). However, I keep getting this error:
gh: error: unrecognized arguments: auth login
Additionally, I get an unrecognized arguments error for most commands. For example, if I try run gh repo view, I get gh: error: unrecognized arguments: repo view. I have installed gh using brew and I have already run brew update and brew upgrade gh.