GitHub CLI can't login

Viewed 3064

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.

1 Answers

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

Related