# Install glab with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Open-source GitLab command-line tool. Version 1.107.0 via Homebrew; verified 2026-07-07.

## Install

```sh
sudo av install brew:glab
```

## Agent safety answer

glab controls GitLab repositories, pipelines, releases, and authenticated project state.

- **Credential access:** Reads GitLab tokens, config, and repository credentials.
- **Remote mutation:** Can create releases, merge requests, issues, pipelines, and repo changes.
- **Publish/artifact risk:** Can upload release assets and trigger CI/CD.
- **Recommended control:** Gate token output, release, pipeline, and write commands.
- **Agent-use guidance:** Allow read-only queries; require approval for releases, pipeline triggers, and project writes.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install glab
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install glab
```

  Evidence: MacPorts ports tree: devel/glab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add glab
```

  Evidence: Alpine Linux edge package indexes: glab from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install glab
```

  Evidence: Debian stable package indexes: glab from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install glab
```

  Evidence: Fedora Rawhide package metadata: glab from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#glab
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gl/glab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S glab
```

  Evidence: Arch Linux sync databases: glab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install glab
```

  Evidence: openSUSE Tumbleweed package metadata: glab from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install glab
```

  Evidence: Chocolatey community package catalog: glab from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gawk'

- Scoop (92%):

```sh
scoop install main/glab
```

  Evidence: Scoop official bucket manifest trees: bucket/glab.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GLab.GLab -e
```

  Evidence: Windows Package Manager source index: GLab.GLab from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:glab
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/glab>
- **Version:** 1.107.0
- **Source summary:** Open-source GitLab command-line tool
- **Homepage:** <https://gitlab.com/gitlab-org/cli>
- **Repository:** <https://gitlab.com/gitlab-org/cli>
- **Upstream docs:** <https://docs.gitlab.com/cli>
- **License:** MIT
- **Source archive:** <https://gitlab.com/gitlab-org/cli.git>
- **Last updated:** 2026-07-07T13:35:22Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- glab (cli)
- glab (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.107.0
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://gitlab.com/gitlab-org/cli
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GLab is the open-source GitLab command-line interface. It brings GitLab issues, merge requests, CI/CD pipelines, jobs, releases, repository operations, authentication, API access, and related DevOps tasks into the terminal beside Git.

### Project history

GLab began as a community project by Clement Sam. GitLab's adoption announcement says he started work more than two years before December 2022 to make his workflow easier and avoid switching among browser tabs, IDE, and terminal.

The original profclems/glab GitHub repository was created in 2020 and gathered a community before GitLab adopted it. GitLab's announcement says more than 80 contributors had built on the tool before adoption, adding commands for merge requests, issues, pipelines, and more.

GitLab adopted the project in 2022 and moved it into gitlab-org/cli as the foundation of GitLab's native CLI experience. The transition included migrating project infrastructure, adapting GitHub Actions work to GitLab CI, reviewing security, and updating distribution methods to point to the new repository.

### Adoption history

GLab's adoption is tied directly to GitLab's broader editor and terminal strategy. GitLab's announcement frames the CLI as another way to integrate GitLab with tools developers already use, following its earlier adoption of GitLab Workflow for VS Code.

The official README documents support for GitLab.com, GitLab Dedicated, and GitLab Self-Managed, with multiple authenticated GitLab instances and automatic host detection from Git remotes. Package metadata in this batch shows GLab in Homebrew, Chocolatey, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, Winget, openSUSE, and Alpine.

### How it is used

Practitioners use glab to stay in the terminal while listing and creating issues, opening and reviewing merge requests, checking pipelines, retrying jobs, creating releases and changelogs, managing labels and milestones, calling the GitLab API, and configuring authentication.

The README shows a command structure of glab command subcommand flags and examples such as listing merge requests assigned to the user, approving a merge request, and creating an issue with milestone, title, and label. Authentication can use OAuth, personal access tokens, CI job tokens, and host-specific configuration.

### Why package nerds care

GLab matters to package maintainers because it is the GitLab-side counterpart to the habit of doing forge work from a shell. It turns GitLab from a browser destination into a scriptable CLI surface for local development and CI contexts.

Its history also shows a common open-source lifecycle: a community tool proved demand, then the platform vendor adopted it, moved distribution, and expanded support for enterprise and self-managed installations.

### Timeline

- 2020: The original profclems/glab repository is created on GitHub.
- 2022: GitLab adopts glab and announces it as the foundation of GitLab's native CLI experience.
- 2022: GitLab moves the project toward gitlab-org/cli and updates distribution methods.
- 2023: GitLab CLI v1.29.1 appears in the GitLab releases feed after the adoption.
- 2026: The GitLab-hosted repository and docs describe broad command coverage for issues, merge requests, CI/CD, releases, APIs, authentication, and GitLab instances.

### Related projects

- GitLab is the forge and DevSecOps platform targeted by GLab.
- Git provides the local repository context used for host detection and developer workflows.
- GitLab Workflow for VS Code is cited by GitLab as a related integration effort.
- 1Password Shell Plugins are documented by GitLab as an authentication integration.

### Sources

- <https://about.gitlab.com/blog/introducing-the-gitlab-cli/>
- <https://api.github.com/repos/profclems/glab>
- <https://docs.gitlab.com/cli>
- <https://gitlab.com/api/v4/projects/gitlab-org%2Fcli>
- <https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/raw/main/content/en-us/blog/introducing-the-gitlab-cli.md>
- <https://gitlab.com/gitlab-org/cli>
- <https://gitlab.com/gitlab-org/cli/-/raw/main/README.md>


## Security Notes

No matching local secret-handling manifest was found for glab. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- macOS: ~/Library/Application Support/glab-cli/config.yml
- Unix: $XDG_CONFIG_HOME/glab-cli/config.yml, ~/.config/glab-cli/config.yml

## Credential files

- macOS: ~/Library/Application Support/glab-cli/config.yml
- Unix: $XDG_CONFIG_HOME/glab-cli/config.yml, ~/.config/glab-cli/config.yml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** glab
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - glab - 1.53.0-1+b3: normalized package name match | Debian stable package indexes: glab from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | commandline interface for gitlab instances | https://gitlab.com/gitlab-org/cli
- Nix - glab: normalized package name match | nixpkgs package indexes: pkgs/by-name/gl/glab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - glab - 1.36.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: glab from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | commandline interface for gitlab instances | https://gitlab.com/gitlab-org/cli
- apk - glab - 1.102.0-r0: normalized package name match | Alpine Linux edge package indexes: glab from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open source GitLab CLI tool written in Go | https://gitlab.com/gitlab-org/cli
- apk - glab-bash-completion - 1.102.0-r0: normalized package name match | Alpine Linux edge package indexes: glab-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for glab | https://gitlab.com/gitlab-org/cli
- apk - glab-doc - 1.102.0-r0: normalized package name match | Alpine Linux edge package indexes: glab-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open source GitLab CLI tool written in Go (documentation) | https://gitlab.com/gitlab-org/cli
- apk - glab-fish-completion - 1.102.0-r0: normalized package name match | Alpine Linux edge package indexes: glab-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for glab | https://gitlab.com/gitlab-org/cli
- apk - glab-zsh-completion - 1.102.0-r0: normalized package name match | Alpine Linux edge package indexes: glab-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for glab | https://gitlab.com/gitlab-org/cli
- dnf - glab - 1.95.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: glab from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A GitLab CLI tool bringing GitLab to your command line | https://gitlab.com/gitlab-org/cli
- pacman - glab - 1.102.0-1: normalized package name match | Arch Linux sync databases: glab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cli tool to help work seamlessly with GitLab from the command line | https://gitlab.com/gitlab-org/cli
- zypper - glab - 1.101.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: glab from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A GitLab command line tool | https://gitlab.com/gitlab-org/cli
- zypper - glab-bash-completion - 1.101.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: glab-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash completion for glab | https://gitlab.com/gitlab-org/cli
- zypper - glab-doc - 1.101.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: glab-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation for GLab | https://gitlab.com/gitlab-org/cli
- zypper - glab-fish-completion - 1.101.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: glab-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fish completion for glab | https://gitlab.com/gitlab-org/cli
- zypper - glab-zsh-completion - 1.101.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: glab-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Zsh completion for glab | https://gitlab.com/gitlab-org/cli
- MacPorts - glab: normalized package name match | MacPorts ports tree: devel/glab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [sugarjar](https://www.automicvault.com/pkg/brew/sugarjar/) - Popular package that depends on this formula.
- [gitea](https://www.automicvault.com/pkg/brew/gitea/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops, git.
- [gcli](https://www.automicvault.com/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, git, gitlab, version-control.
- [git-spice](https://www.automicvault.com/pkg/brew/git-spice/) - Shares av.db curated category or tags: cli, developer-tools, git, gitlab, version-control.
- [gitbackup](https://www.automicvault.com/pkg/brew/gitbackup/) - Shares av.db curated category or tags: cli, developer-tools, git, gitlab, version-control.
- [lab](https://www.automicvault.com/pkg/brew/lab/) - Shares av.db curated category or tags: cli, developer-tools, git, gitlab, version-control.
- [microplane](https://www.automicvault.com/pkg/brew/microplane/) - Shares av.db curated category or tags: cli, developer-tools, git, gitlab, version-control.
- [aicommit](https://www.automicvault.com/pkg/brew/aicommit/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommit2](https://www.automicvault.com/pkg/brew/aicommit2/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [gitlab-ci-linter](https://www.automicvault.com/pkg/brew/gitlab-ci-linter/) - Local package facts share a topical domain. Shared terms: ci-cd, cli, command-line, developer, developer-tools.
- [gitlab-runner](https://www.automicvault.com/pkg/brew/gitlab-runner/) - Local package facts share a topical domain. Shared terms: ci-cd, cli, developer, developer-tools, gitlab.
- [gitlab-release-cli](https://www.automicvault.com/pkg/brew/gitlab-release-cli/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gitlab.

## Combined YAML source

View the package source record on GitHub. [combined/glab.yml](https://github.com/automic-vault/db/blob/main/combined/glab.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
