browse
Download binary →
glab/GitLab CLI
GitLabOpen source GitLab CLI for managing merge requests, issues, pipelines, and repositories.
CI/CD & Source ControlJSON
01Agent Notes
glab mirrors gh's patterns. `glab mr create/list/view`, `glab issue list`. Use `--output json` or `-F json` for structured output. Use `glab api` for direct GitLab API access. `glab ci list` for pipeline status. `glab mr merge <id>` to merge merge requests.
02Global Flags
| Flag | Type | Description |
|---|---|---|
--output/-F | enum [json, text] | Output format |
--repo/-R | string | Repository in OWNER/REPO format |
03Authentication
Methods
access-tokenoauth
Env vars
GITLAB_TOKENGITLAB_HOSTSetup
glab auth login04Install
brew install glab05Capabilities
Reference
binary
glabcheck
glab --versionauth
access-token, oauthformats
text, textjson flag
--output jsonversion
1.89.0