Files
cheatsheet-tldr/tldr/glab-auth
2025-12-20 00:20:53 +00:00

26 lines
516 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`