Loading...
Loading...
Use when interacting with GitLab from the command line — creating and managing merge requests, issues, CI/CD pipelines, releases, repositories, and any other GitLab operation. Covers all glab CLI commands including mr, issue, ci, release, repo, api, variable, snippet, schedule, stack, label, milestone, incident, and auth.
npx skill4agent add beeltec/skills glabglabglabbrew install glabapt install glabglab auth loginapiwrite_repository-R OWNER/REPOglab <command> <subcommand> [flags]-h--help-R--repo OWNER/REPO| Topic | File | Load when... |
|---|---|---|
| Merge requests | | Creating, reviewing, approving, merging, or listing MRs |
| Issues | | Creating, listing, updating, closing, or triaging issues/incidents |
| CI/CD pipelines & jobs | | Running, viewing, retrying, canceling pipelines or jobs; linting CI config |
| Releases | | Creating releases, uploading assets, managing changelogs |
| Repo, auth & config | | Cloning, forking, creating repos; authenticating; configuring glab |
| API, variables & advanced | | Making raw API calls; managing variables, snippets, schedules, stacks, labels, milestones, aliases |
| Writing issues & MRs | | Writing titles and descriptions for issues or merge requests; following conventional commits; structuring MR descriptions |
references/writing-issues-and-mrs.md# Interactive — prompts for title, description, target branch
glab mr create
# Non-interactive with conventional title, reviewers, and labels
glab mr create -t "feat(auth): add OAuth2 login (closes #123)" --yes -a assignee --reviewer reviewer1 --label "ready for review" -b main
# Draft MR from commit info
glab mr create -f --draft --label WIPglab mr list --reviewer=@me # MRs awaiting your review
glab mr diff 42 # View changes
glab mr approve 42 # Approve
glab mr merge 42 # Merge (prompts for method)references/writing-issues-and-mrs.mdglab issue create -t "[Bug]: Login fails on iOS Safari 17 after timeout" -l bug,P1 -m v2.0
glab issue list --label bug --assignee=@me
glab issue close 99glab ci run -b main # Trigger pipeline on branch
glab ci status # Current pipeline status
glab ci view # Interactive pipeline viewer
glab ci retry lint # Retry a specific job by name
glab ci lint # Validate .gitlab-ci.ymlglab release create v1.2.0 ./dist/*.tar.gz \
--notes "Bugfix release" \
--milestone v1.2.0# REST
glab api projects/:fullpath/members
# GraphQL
glab api graphql -f query='{ currentUser { username } }'
# With pagination
glab api issues --paginate --output ndjsonglab variable list
glab variable set MY_SECRET "s3cret"
glab variable get MY_SECRET
glab variable delete MY_SECRET| Command | Purpose |
|---|---|
| Create command shortcuts |
| Make authenticated REST/GraphQL API calls |
| Manage attestations |
| Authenticate to GitLab instances |
| Generate changelogs |
| Check for glab updates |
| Manage CI/CD pipelines and jobs |
| Manage cluster agents |
| Generate shell completions (bash/zsh/fish/PowerShell) |
| Set and get glab configuration |
| Manage deploy keys |
| Interact with GitLab Duo AI |
| Manage GPG keys |
| Manage incidents |
| Manage issues |
| Manage iterations |
| Manage CI/CD jobs |
| Manage labels |
| Model Context Protocol server |
| Manage milestones |
| Manage merge requests |
| OpenTofu integration |
| Manage releases |
| Manage repositories |
| Manage pipeline schedules |
| Manage secure files |
| Manage snippets |
| Manage SSH keys |
| Stacked diffs (experimental) |
| Manage personal access tokens |
| Interact with user accounts |
| Manage CI/CD variables |
| Show glab version |
| Flag | Description |
|---|---|
| Show help for any command |
| Target a different repository (also accepts |
| Show glab version |
feat:fix:docs:references/writing-issues-and-mrs.md--repoglab auth loginlist-F jsonglab alias set mrc 'mr create --fill --yes'glab mrcEDITORVISUAL--recovermr createissue create