Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 glab

查看 glab 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

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

凭据访问

Reads GitLab tokens, config, and repository credentials.

远程变更

Can create releases, merge requests, issues, pipelines, and repo changes.

发布/制品风险

Can upload release assets and trigger CI/CD.

推荐控制

Gate token output, release, pipeline, and write commands.

代理使用指南

Allow read-only queries; require approval for releases, pipeline triggers, and project writes.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install glab

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install glab

MacPorts ports tree · devel/glab/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add glab

Alpine Linux edge package indexes · glab · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install glab

Debian stable package indexes · glab · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install glab

Fedora Rawhide package metadata · glab · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#glab

nixpkgs package indexes · pkgs/by-name/gl/glab/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S glab

Arch Linux sync databases · glab · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install glab

openSUSE Tumbleweed package metadata · glab · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install glab

Chocolatey community package catalog · glab · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/glab

Scoop official bucket manifest trees · bucket/glab.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GLab.GLab -e

Windows Package Manager source index · GLab.GLab · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Open-source GitLab command-line tool

命令和别名

  • glab

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 glab 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

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

Credential files

Credential-bearing paths to review before unattended agent runs.

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
glabcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.109.0
管理器更新时间2026-07-21
本地数据OK
上游not checked
检测到的最新版本未检测到

https://gitlab.com/gitlab-org/cli

安装元数据

软件包元数据

软件包键brew:glab
版本1.109.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/glab
主页https://gitlab.com/gitlab-org/cli
仓库https://gitlab.com/gitlab-org/cli
上游文档https://docs.gitlab.com/cli
许可证MIT
源码归档https://gitlab.com/gitlab-org/cli.git
最后更新2026-07-21T16:55:22Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameglab
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

glab 1.53.0-1+b3

commandline interface for gitlab instances

https://gitlab.com/gitlab-org/cli

sudo apt install glab
  • Section: vcs
  • Architecture: amd64
  • Source Package: glab
  • 1 依赖
  • normalized package name match
  • 匹配方式:Glab
Debian stable package indexes · deb.debian.org · Debian stable package indexes: glab from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

glab

nix profile install nixpkgs#glab
  • normalized package name match
  • 匹配方式:Glab
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gl/glab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

glab 1.36.0-1

commandline interface for gitlab instances

https://gitlab.com/gitlab-org/cli

sudo apt install glab
  • Section: universe/vcs
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Glab
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: glab from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

glab 1.102.0-r0

Open source GitLab CLI tool written in Go

https://gitlab.com/gitlab-org/cli

sudo apk add glab
  • License: MIT
  • Architecture: x86_64
  • Source Package: glab
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glab
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glab from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

glab-bash-completion 1.102.0-r0

Bash completions for glab

https://gitlab.com/gitlab-org/cli

sudo apk add glab-bash-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: glab
  • normalized package name match
  • 匹配方式:Glab
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glab-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

glab-doc 1.102.0-r0

Open source GitLab CLI tool written in Go (documentation)

https://gitlab.com/gitlab-org/cli

sudo apk add glab-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: glab
  • normalized package name match
  • 匹配方式:Glab
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glab-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

glab-fish-completion 1.102.0-r0

Fish completions for glab

https://gitlab.com/gitlab-org/cli

sudo apk add glab-fish-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: glab
  • normalized package name match
  • 匹配方式:Glab
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glab-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

glab-zsh-completion 1.102.0-r0

Zsh completions for glab

https://gitlab.com/gitlab-org/cli

sudo apk add glab-zsh-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: glab
  • normalized package name match
  • 匹配方式:Glab
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glab-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

glab 1.95.0-1.fc45

A GitLab CLI tool bringing GitLab to your command line

https://gitlab.com/gitlab-org/cli

sudo dnf install glab
  • License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND (FTL OR GPL-2.0-or-later)
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: glab
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Glab
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glab from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

glab 1.102.0-1

Cli tool to help work seamlessly with GitLab from the command line

https://gitlab.com/gitlab-org/cli

sudo pacman -S glab
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Glab
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: glab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

glab 1.101.0-1.1

A GitLab command line tool

https://gitlab.com/gitlab-org/cli

sudo zypper install glab
  • License: MIT
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: glab
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glab
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glab from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

glab-bash-completion 1.101.0-1.1

Bash completion for glab

https://gitlab.com/gitlab-org/cli

sudo zypper install glab-bash-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: glab
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glab
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glab-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

glab-doc 1.101.0-1.1

Documentation for GLab

https://gitlab.com/gitlab-org/cli

sudo zypper install glab-doc
  • License: MIT
  • Category: Documentation/HTML
  • Architecture: noarch
  • Source Package: glab
  • 1 提供
  • normalized package name match
  • 匹配方式:Glab
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glab-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

glab-fish-completion 1.101.0-1.1

Fish completion for glab

https://gitlab.com/gitlab-org/cli

sudo zypper install glab-fish-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: glab
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glab
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glab-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

glab-zsh-completion 1.101.0-1.1

Zsh completion for glab

https://gitlab.com/gitlab-org/cli

sudo zypper install glab-zsh-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: glab
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glab
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glab-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

glab

sudo port install glab
  • normalized package name match
  • 匹配方式:Glab
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/glab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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