writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
glab-authManage GitLab CLI authentication including login/logout, check auth status, switch accounts, and configure Docker registry access. Use when setting up glab for first time, troubleshooting auth issues, switching GitLab instances/accounts, or configuring Docker to pull from GitLab registry. Triggers on auth, login, logout, authentication, credentials, token, …
Independent GitHub snapshot · Automated classification · Original documentation governs
Manage GitLab CLI authentication.
# Interactive login
glab auth login
# Check current auth status
glab auth status
# Login to different instance
glab auth login --hostname gitlab.company.com
# Logout
glab auth logout
glab auth loginglab auth statusLogout from current:
glab auth logout
Login to new instance:
glab auth login --hostname gitlab.company.com
Verify:
glab auth status
Configure Docker helper:
glab auth configure-docker
Verify Docker can authenticate:
docker login registry.gitlab.com
Pull private images:
docker pull registry.gitlab.com/group/project/image:tag
"401 Unauthorized" errors:
glab auth statusglab auth loginMultiple instances:
--hostname flag to specify instanceDocker authentication fails:
glab auth configure-dockercat ~/.docker/config.json"credHelpers": { "registry.gitlab.com": "glab-cli" }See references/commands.md for detailed flag documentation:
login - Authenticate with GitLab instancelogout - Log out of GitLab instancestatus - View authentication statusconfigure-docker - Configure Docker to use GitLab registrydocker-helper - Docker credential helperdpop-gen - Generate DPoP tokenInitial setup:
glab-config to set CLI defaultsglab-ssh-key for SSH key managementglab-gpg-key for commit signing setupRepository operations:
glab-repo for cloning repositories