glab-auth: add page (#7612)

feature/windows-fix-syntax-2
Reinhart Previano Koentjoro 2022-02-05 19:35:14 +07:00 committed by GitHub
parent 4f57bb181e
commit aac892abd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
pages/common/glab-auth.md Normal file
View File

@ -0,0 +1,20 @@
# glab auth
> Authenticate with a GitLab host from the command-line.
> More information: <https://glab.readthedocs.io/en/latest/auth>.
- Log in with interactive prompt:
`glab auth login`
- Log in with a token:
`glab auth login --token {{token}}`
- Check authentication status:
`glab auth status`
- Log in to a specific GitLab instance:
`glab auth login --hostname {{gitlab.example.com}}`