glab-auth

Authenticate with a GitLab host from the command-line.

TLDR

Log in with interactive prompt

$ glab auth login
copy


Log in with a token
$ glab auth login --token [token]
copy


Check authentication status
$ glab auth status
copy


Log in to a specific GitLab instance
$ glab auth login --hostname [gitlab.example.com]
copy

Copied to clipboard