# Install gitlab-gem with Homebrew, Nix, pacman

Ruby client and CLI for GitLab API. Version 6.1.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:gitlab-gem
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gitlab-gem>
- **Version:** 6.1.0
- **Source summary:** Ruby client and CLI for GitLab API
- **Homepage:** <https://narkoz.github.io/gitlab/>
- **Repository:** <https://github.com/NARKOZ/gitlab>
- **Upstream docs:** <https://narkoz.github.io/gitlab>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/NARKOZ/gitlab/archive/refs/tags/v6.1.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- gitlab (cli)
- gitlab (alias)

## Dependencies

- ruby

## 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: 6.1.0
- Local data: ok
- Upstream repository: https://github.com/NARKOZ/gitlab
- Upstream latest detected: v6.1.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [ruby](https://www.automicvault.com/pkg/brew/ruby/) - Runtime dependency declared by Homebrew.
- [bruno-cli](https://www.automicvault.com/pkg/brew/bruno-cli/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [chiko](https://www.automicvault.com/pkg/brew/chiko/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [cobo-cli](https://www.automicvault.com/pkg/brew/cobo-cli/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [evans](https://www.automicvault.com/pkg/brew/evans/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [flickcurl](https://www.automicvault.com/pkg/brew/flickcurl/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [goolabs](https://www.automicvault.com/pkg/brew/goolabs/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [internetarchive](https://www.automicvault.com/pkg/brew/internetarchive/) - Shares av.db curated category or tags: api-client, cli, developer-tools.
- [posting](https://www.automicvault.com/pkg/brew/posting/) - Shares av.db curated category or tags: api-client, cli, developer-tools.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
