commands.sh

glab auth

all

Authenticate with a GitLab host.

More info →

Options (2)

-t, --tokenboolean

Log in with a token

Example: glab auth login {{[-t|--token]}} {{token}}
-h, --hostnameboolean

Log in to a specific GitLab instance

Example: glab auth login {{[-h|--hostname]}} {{gitlab.example.com}}

Examples (4)

Log in with interactive prompt

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
made by @shridhargupta | data from tldr-pages