What problem does it solve?
It helps you perform common GitLab tasks (merge requests, issues, and CI/CD operations) from the terminal without manually switching to the web UI.
Core Features & Use Cases
- Merge Request workflows: Create, view, checkout, approve, merge, and manage MR lifecycle with recommended safety flags and pipeline-aware merging.
- Issue management: Create, list, close, and update issues with labels, assignees, and messages.
- CI/CD operations: Check pipeline status, watch pipelines, trace job logs, lint CI configuration, trigger and retry pipelines, and handle artifacts and debugging via API.
- Direct API usage: Run targeted GitLab REST calls (with pagination guidance) when CLI commands aren’t enough.
Quick Start
Run glab auth login to authenticate, then use glab mr create --title "Fix bug" --description "Closes #123" --remove-source-branch --squash-before-merge to open a merge request with guarded merge settings.