talira

GitLab CLI

A GitLab CLI tool bringing GitLab to your command line

open sourceMITself-hostablefree

GLab (glab) is GitLab's open source command-line tool: it brings issues, merge requests, CI/CD pipelines and jobs, releases, changelogs, variables, runners, container and package registries and GitLab agents for Kubernetes to the terminal, next to git, plus glab api for any GitLab API call and glab duo cli for GitLab Duo. It works with GitLab.com, GitLab Dedicated and GitLab Self-Managed 16.0 and later, supports several authenticated instances and picks the host from your Git remotes. It is MIT licensed, written in Go, and Homebrew is its officially supported package manager on macOS, Linux and Windows (through WSL).

Ways to install

Problems it solves

  • create, review and approve GitLab merge requests without leaving the terminal
  • list the merge requests waiting for my review from the command line
  • watch, retry and debug GitLab CI pipelines and jobs from my terminal
  • open a GitLab issue with a milestone and labels in one command
  • generate a changelog and publish a GitLab release from a script
  • manage CI/CD variables for a GitLab project or group from the command line
  • work with several GitLab instances, including our self-managed server, from one tool
  • make authenticated GitLab API calls from a shell script without handling tokens myself
  • manage GitLab runners and Kubernetes agents from the terminal

Features

  • merge requests and issues
  • CI/CD pipelines, jobs and schedules
  • releases and changelogs
  • glab api for authenticated API requests
  • CI/CD variables, deploy keys and tokens
  • runners and GitLab agents for Kubernetes
  • container and package registries
  • GitLab Duo in the terminal (glab duo cli)
  • aliases
  • multiple authenticated GitLab instances
View 2 more
  • stacked diffs (experimental)
  • agent skills (experimental)

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what GitLab CLI does.

  1. CircleCI CLI Use CircleCI from the command line
  2. GitHub CLI (gh) GitHub's official command line tool

Compare GitLab CLI with the top 3