Trying to get setup, no commands seem to work outside of a github repository #12317
-
|
I'm trying to setup gh cli (in order to manage my org via terraform), however every As I am doing the organization setup, we have no repositories or anything other than a few admins setup yet. I'm sure I'm missing something here, but I can't even login to the cli. |
Beta Was this translation helpful? Give feedback.
Answered by
williammartin
Dec 15, 2025
Replies: 1 comment 7 replies
-
|
Yeh you definitely shouldn't need to be in a repo to run What OS are you on? Assuming linux or mac, can you drop the output of: |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That'll do it.
I have no idea where you got that alias from but
git rev-parse --show-toplevelis used to point to the root of a git directory so if you aren't in one you'll get:You can:
And then
ghshould use the GitHub CLI correctly, but big picture I guess you'll need to figure out why it exists.