mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-08 12:26:00 +02:00
20 lines
422 B
Markdown
20 lines
422 B
Markdown
# glab auth
|
|
|
|
> Authenticate with a GitLab host.
|
|
> More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/auth/index.md>.
|
|
|
|
- Log in with interactive prompt:
|
|
|
|
`glab auth login`
|
|
|
|
- Log in with a token:
|
|
|
|
`glab auth login {{[-t|--token]}} {{token}}`
|
|
|
|
- Check authentication status:
|
|
|
|
`glab auth status`
|
|
|
|
- Log in to a specific GitLab instance:
|
|
|
|
`glab auth login {{[-h|--hostname]}} {{gitlab.example.com}}`
|