Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
glab-auth【部署与运维】Manage 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, …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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