LinuxCommandLibrary

glab

Official GitLab CLI tool

TLDR

Create merge request

$ glab mr create
copy
List merge requests
$ glab mr list
copy
View merge request
$ glab mr view [number]
copy
Create issue
$ glab issue create
copy
List issues
$ glab issue list
copy
Clone repository
$ glab repo clone [owner/repo]
copy
View CI/CD pipelines
$ glab ci list
copy

SYNOPSIS

glab command [options]

DESCRIPTION

glab is the official GitLab CLI tool. It provides command-line access to GitLab features including merge requests, issues, CI/CD pipelines, and repository management.
The tool mirrors the `gh` CLI's approach for GitHub, providing a familiar interface for GitLab users. It supports both GitLab.com and self-hosted instances.

PARAMETERS

mr subcommand

Merge request operations (create, list, view, merge, close).
issue subcommand
Issue operations (create, list, view, close).
repo subcommand
Repository operations (clone, fork, view).
ci subcommand
CI/CD operations (list, view, run, trace).
auth subcommand
Authentication (login, status, logout).
config subcommand
Configuration management.
api endpoint
Raw API access.
--repo, -R repo
Target repository.

CONFIGURATION

~/.config/glab-cli/config.yml

Configuration file storing authentication tokens, default settings, and host configurations.

CAVEATS

Requires GitLab access token. Some features may require specific permissions. Self-hosted instances need hostname configuration. API rate limits apply.

HISTORY

glab was created by Clement Sam and later became the official GitLab CLI. It was inspired by GitHub's gh CLI and provides similar functionality for GitLab users.

SEE ALSO

gh(1), git(1), gitlab-runner(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community