mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
gh-auth: add page (#4839)
This commit is contained in:
parent
2e2243e363
commit
d2a24aaf37
1 changed files with 24 additions and 0 deletions
24
pages/common/gh-auth.md
Normal file
24
pages/common/gh-auth.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# gh auth
|
||||
|
||||
> Authenticate with a GitHub host from the command line.
|
||||
> More information: <https://cli.github.com/manual/gh_auth>.
|
||||
|
||||
- Login with interactive prompt:
|
||||
|
||||
`gh auth login`
|
||||
|
||||
- Login with a token from standard input (created in https://github.com/settings/tokens):
|
||||
|
||||
`echo {{your_token}} | gh auth login --with-token`
|
||||
|
||||
- Check if you are logged in:
|
||||
|
||||
`gh auth status`
|
||||
|
||||
- Log out:
|
||||
|
||||
`gh auth logout`
|
||||
|
||||
- Login with a specific GitHub Enterprise Server:
|
||||
|
||||
`gh auth login --hostname {{github.example.com}}`
|
Loading…
Add table
Reference in a new issue