glab

Manage GitLab resources via the glab CLI for issues, merge requests, and pipelines.

Updated Dec 12, 2025
One-click install
npx skills add https://github.com/danielscholl/agent-base-v2 --skill glab-danielscholl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab
Source: https://github.com/danielscholl/agent-base-v2/tree/main/src/_bundled_skills/glab
Command: npx skills add https://github.com/danielscholl/agent-base-v2 --skill glab-danielscholl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for using glab, the GitLab CLI, to perform GitLab operations from the terminal, reducing manual steps and enabling automation of PRs, issues, pipelines, and repository tasks.

Core Features & Use Cases

  • MR/Issue workflows: Create, review, and manage merge requests and issues from the CLI.
  • CI/CD & Pipelines: Interact with pipelines, view status, and trigger runs.
  • Repository operations: Clone, fork, view, and manage GitLab repositories and settings.
  • APIs & Troubleshooting: Guidance on using glab api and debugging with detailed references.

Quick Start

Authenticate with glab, then try listing MRs and creating an MR:

  • glab auth login
  • glab mr list
  • glab mr create --title "New feature" --description "Details"

Frequently Asked Questions about glab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage GitLab merge requests and issues from the command line?

Use glab CLI to create, list, and review merge requests and issues directly from the terminal. Run `glab mr create` to open PRs, `glab mr list` to view pending requests, and `glab issue create` to file issues without leaving your shell.

Can I automate GitLab CI/CD pipelines from the CLI?

Yes, glab lets you view pipeline status, trigger runs, and monitor builds from the command line. Use `glab pipeline list` and `glab pipeline run` to interact with CI/CD workflows without the web UI.

What do I need to set up before using glab?

Install glab and authenticate with `glab auth login` to connect to GitLab.com or your self-hosted instance. Authentication is required before executing any repository or workflow commands.

Does glab work with self-hosted GitLab instances?

Yes, glab supports both GitLab.com and self-hosted instances. During authentication, specify your instance URL to connect glab to a private or on-premise GitLab deployment.

How can I integrate glab output into scripts?

glab supports JSON output mode, enabling programmatic parsing and scripting. Use the `--json` flag on commands like `glab mr list --json` to generate structured data for automation and downstream processing.

What repository operations can glab handle?

glab enables cloning, forking, viewing repository details, and managing settings from the CLI. Use commands like `glab repo clone`, `glab repo fork`, and `glab repo view` to perform repository tasks without the web interface.