glab(1) glab(1) (NAME) glab-auth-login - GitLab. (SYNOPSIS) glab auth login [flags] (DESCRIPTION) GitLab . (keyring) glab (macOS Keychain Windows Credential Manager Secret Service ) . --insecure- storage glab ( ~/.config/glab-cli/config.yml) . glab . glab auth login . CI ( GITLAB_CI CI ) glab . CI . GITLAB_TOKEN GITLAB_ACCESS_TOKEN OAUTH_TOKEN . CI CI_JOB_TOKEN . --stdin . glab GitLab Git . (OPTIONS) -a, --api-host="" API --hostname . hostname:port . API Git . -p, --api-protocol="" API. : https http. --container-registry-domains="" (container registry) . --device[=false] OAuth 2.0. (headless) . GitLab 17.9 . -g, --git-protocol="" Git. : ssh https http. --hostname="" GitLab . --insecure-storage[=false] . -j, --job-token="" CI. --ssh-hostname="" SSH SSH . Git . --stdin[=false] . -t, --token="" GitLab . --web[=false] /OAuth. (OPTIONS INHERITED FROM PARENT COMMANDS) -h, --help[=false] . (EXAMPLE) # # Git glab GitLab glab auth login # `gitlab.com` glab auth login --stdin < myaccesstoken.txt # GitLab Self-Managed GitLab Dedicated glab auth login --hostname salsa.debian.org # glab auth login --hostname gitlab.example.org --token glpat-xxx --api-host gitlab.example.org:3443 --api-protocol https --git-protocol ssh # glab auth login --hostname gitlab.example.org --api-host gitlab.example.org:3443 --api-protocol https --git-protocol ssh --stdin < myaccesstoken.txt # OAuth glab auth login --hostname gitlab.com --web --git-protocol ssh --container-registry-domains "gitlab.com,gitlab.com:443,registry.gitlab.com" # OAuth . # glab # . GitLab 17.9 . glab auth login --hostname gitlab.com --device # CI/CD: GLAB_ENABLE_CI_AUTOLOGIN=true glab release list -R $CI_PROJECT_PATH # CI/CD : CI glab auth login --hostname $CI_SERVER_FQDN --job-token $CI_JOB_TOKEN --api-protocol $CI_SERVER_PROTOCOL (SEE ALSO) glab-auth(1) Auto generated by spf13/cobra Sep 2026 glab(1)