glab-auth: add page (#7612)

This commit is contained in:
Reinhart Previano Koentjoro
2022-02-05 19:35:14 +07:00
committed by GitHub
parent 4f57bb181e
commit aac892abd0

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}}`