glab
Official GitLab CLI tool
TLDR
Create merge request
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)
