glab-cli
Installation
SKILL.md
GLAB CLI Command Reference
Quick-reference for the GitLab CLI (glab). Covers authentication, issues, merge requests, CI/CD pipelines, releases, repo management, labels, variables, snippets, and milestones.
Core Principles
- Authenticate first: Verify auth status before running commands
- Use
-Rfor cross-repo: Target any repo with-R OWNER/REPOorGROUP/NAMESPACE/REPO - Output format matters: Use
--output jsonfor scripting, default for readability - Prefer flags over interactive: Use flags (
-t,-d,-l) for reproducible, non-interactive commands - Current branch context: Many
mrandcicommands auto-detect the current branch's MR or pipeline
Authentication
Authenticate before running any glab command.
# Interactive login (browser-based OAuth flow)
glab auth login