LinuxCommandLibrary

glab-auth

Manage GitLab CLI authentication

TLDR

Login to GitLab

$ glab auth login
copy
Login with token
$ glab auth login --token [token]
copy
Login to specific host
$ glab auth login --hostname [gitlab.example.com]
copy
Show auth status
$ glab auth status
copy
Logout
$ glab auth logout
copy

SYNOPSIS

glab auth command [options]

DESCRIPTION

glab auth manages GitLab CLI authentication. It handles logging in to GitLab instances with personal access tokens or OAuth, and stores credentials for use by other glab commands.
For self-hosted GitLab instances, use the `--hostname` flag to specify the server address.

PARAMETERS

--token token

Authentication token.
--hostname host
GitLab host.

SUBCOMMANDS

login

Authenticate with GitLab.
logout
Log out.
status
Show authentication status.

SEE ALSO

glab(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community