# gitlab-gem を Homebrew, Nix, pacman でインストール

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
