1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 02:06:15 +02:00
tldr/pages/common/glab-auth.md
2025-05-11 20:03:01 +03:00

422 B

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