# 使用 Homebrew, Nix, pacman 安装 gitlab-gem

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

## 安装

```sh
sudo av install brew:gitlab-gem
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitlab-gem
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gitlab
```

  证据: nixpkgs package indexes: pkgs/by-name/gi/gitlab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gitlab
```

  证据: Arch Linux sync databases: gitlab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:gitlab-gem
- **软件包管理器:** Homebrew
- **版本:** 6.1.0
- **来源摘要:** Ruby client and CLI for GitLab API
- **主页:** <https://narkoz.github.io/gitlab/>
- **仓库:** <https://github.com/NARKOZ/gitlab>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitlab (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 6.1.0
## 项目历史与用法

GitLab Ruby Gem, packaged by Homebrew as `gitlab-gem`, is a Ruby client library and command-line interface for the GitLab REST API. It lets Ruby programs and terminal users call GitLab API methods for users, projects, merge requests, branches, groups, and related resources.

### 项目历史

The NARKOZ/gitlab repository was created in September 2012, making it one of the earlier third-party client libraries for GitLab automation. The README describes the package as both a Ruby wrapper and a CLI for the GitLab API, with installation through RubyGems, Bundler, and Homebrew.

The gem evolved with GitLab's API versions and Ruby packaging norms. Its README documents endpoint and token configuration, client initialization, pagination helpers, CLI command dispatch to client methods, an interactive CLI shell, and development against either a Dockerized GitLab instance or an external GitLab instance.

### 采用历史

The package's adoption is visible in RubyGems metadata: the API response collected for this enrichment reported over 112 million gem downloads. That scale reflects long-running use in Ruby automation, scripts, internal tools, and CI jobs that need GitLab API access without hand-written HTTP calls.

Homebrew's `gitlab-gem` formula exists because the gem also exposes a `gitlab` executable, giving non-Ruby specialists a packaged CLI route to the same API client.

### 使用方式

Practitioners configure `GITLAB_API_ENDPOINT` and `GITLAB_API_PRIVATE_TOKEN`, or configure those values in Ruby with `Gitlab.configure`. CLI users call client methods as commands, such as `gitlab users`, `gitlab user`, and `gitlab create_merge_request`, with YAML-style option hashes where needed.

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

For package maintainers, `gitlab-gem` is a reminder that language packages can become general-purpose command-line tools. The Homebrew formula wraps a RubyGem so developers can install a GitLab API CLI without thinking about Bundler, while Ruby users still get the library through the normal gem ecosystem.

### 时间线

- 2012: Repository created for a Ruby GitLab API wrapper.
- 2012: Package documented Ruby library and CLI usage against GitLab.
- 2024: v5.x releases continued API-client maintenance.
- 2025: v6.1.0 release published on GitHub.

### Related projects

- Related surfaces include GitLab's REST API, RubyGems, RubyDoc, Bundler, Homebrew, HTTParty, and GitLab CE or EE instances used for development and testing.

### 来源

- <https://api.github.com/repos/NARKOZ/gitlab>
- <https://github.com/NARKOZ/gitlab>
- <https://github.com/NARKOZ/gitlab/releases/tag/v6.1.0>
- <https://raw.githubusercontent.com/NARKOZ/gitlab/master/README.md>
- <https://rubygems.org/api/v1/gems/gitlab.json>
- <https://rubygems.org/gems/gitlab>
- <https://www.rubydoc.info/gems/gitlab>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Nix - gitlab: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/gi/gitlab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - gitlab - 19.2.1-1: installed executable or alias match | Arch Linux sync databases: gitlab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Project management and code hosting application | https://gitlab.com/gitlab-org/gitlab-foss


## Combined YAML source

View the package source record on GitHub. [combined/gitlab-gem.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gitlab-gem.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
