mirror of https://github.com/CrimsonTome/tldr.git
21 lines
397 B
Markdown
21 lines
397 B
Markdown
|
# 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}}`
|