tldr/pages/common/glab-auth.md

21 lines
375 B
Markdown
Raw Normal View History

2022-02-05 12:35:14 +00:00
# glab auth
> Authenticate with a GitLab host.
2022-02-05 12:35:14 +00:00
> 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}}`