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.
Resolved it. I had installed a version of gh using pip and another version using Brew. The pip version was 0.0.4 which meant I didn't have access to any commands. I used pip uninstall gh and then reinstalled with Brew which did the trick
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With