21 lines
422 B
Markdown
Raw Normal View History

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