Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub CLI can't login

Tags:

git

github

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.

like image 707
Oliver James Avatar asked Sep 23 '26 23:09

Oliver James


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

like image 88
Oliver James Avatar answered Sep 26 '26 14:09

Oliver James