Skip to content

glab

Official gitlab cli client

Install

sudo pacman -S glab

Configuration

Authentication:

Get a GitLab personal access token with at least the api and write_repository scopes

Environment variables

export GITLAB_HOST=https://0xacab.org/
export GITLAB_TOKEN=$(gopass show --password token/0xacab.org/glab)

Usage

Merge requests

List all open MRs in group:

glab mr list --group 123..

CI

glab ci trace

Access tokens

Issues