# 使用 Homebrew, apk, MacPorts, Nix, scoop 安装 lab

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

## 安装

```sh
sudo av install brew:lab
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lab
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lab
```

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

### Linux

- apk (92%):

```sh
sudo apk add lab
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#lab
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/lab
```

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

## 软件包事实

- **软件包键:** brew:lab
- **软件包管理器:** Homebrew
- **版本:** 0.25.1
- **来源摘要:** Git wrapper for GitLab
- **主页:** <https://zaquestion.github.io/lab>
- **仓库:** <https://github.com/zaquestion/lab>
- **最后更新:** 2026-07-26T13:40:58+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lab (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Lab is a community GitLab command-line tool that wraps Git and GitLab API workflows. It focuses on merge requests, issues, milestones, snippets, CI pipelines, repository cloning, and forking from the terminal.

Its appeal was giving GitLab users a hub-like workflow before the GitLab-owned `glab` CLI became the obvious official comparison point.

### 项目历史

The project presents itself as `git + GitLab`: a Go command-line utility designed to make GitLab repository work feel close to normal Git usage. The README emphasizes a simple interface for GitLab API commands and WebUI-like messages and errors.

Lab originally described itself as wrapping Git or Hub, but later release notes document removal of hub support and references to `glab`, showing the project adjusting as GitLab CLI tooling matured around it.

### 采用历史

Lab spread through developer package managers such as Homebrew, Nix, Scoop, Alpine, and MacPorts because it solved a practical terminal gap for GitLab users: creating and reviewing merge requests, issues, and CI state without switching to the browser.

Its GitHub repository retained a modest but real community footprint, with more than a thousand stars and release artifacts for multiple platforms on the public release page.

### 使用方式

Users configure GitLab host and token details in lab.toml files, with user, worktree, and local-project locations. Commands can be run directly as `lab` or wired into Git aliases such as `git lab mr list`.

Common workflows include cloning GitLab repositories, creating or listing merge requests, working with issues, viewing CI pipelines and jobs, and browsing project resources from the terminal.

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

Lab is useful package-manager history because it captures a period when Git hosting sites had uneven first-party CLI support. GitHub had hub and later gh; GitLab users often reached for community tools like lab before GitLab's own glab project became prominent.

The package also shows how CLI tools track hosted-service APIs: a small local binary becomes valuable only when it keeps up with merge-request, issue, token, and CI behavior on a remote platform.

### 时间线

- Pre-2022: Lab established itself as a community GitLab CLI distributed through multiple package managers.
- 2021: Release notes for v0.20.0 referenced glab and tracked GitLab workflow fixes.
- 2021: Release notes for v0.21.0 documented dropping hub support.
- 2022: The GitLab-owned glab project was created on GitLab on March 21.
- 2022: Lab v0.25.x releases focused on merge-request lookup and Homebrew-related fixes.

### Related projects

- GitLab's `glab` is the closest related project and became the official GitLab CLI line.
- GitHub's `hub` is historically relevant because Lab described itself as wrapping Git or Hub and later removed hub support.
- python-gitlab and go-gitlab are adjacent API-client ecosystems used by GitLab automation tools.

### 来源

- <https://github.com/zaquestion/lab>
- <https://github.com/zaquestion/lab/releases>
- <https://gitlab.com/gitlab-org/cli>
- <https://raw.githubusercontent.com/zaquestion/lab/master/README.md>
- <https://zaquestion.github.io/lab/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


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

- Unix: ./lab.toml, ~/.config/lab/lab.toml, .git/lab/lab.toml

## Credential files

- Unix: ./lab.toml, ~/.config/lab/lab.toml, .git/lab/lab.toml
## 其他软件包管理器记录

- Nix - lab: normalized package name match | nixpkgs package indexes: pkgs/by-name/la/lab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - lab - 0.25.1-r37: normalized package name match | Alpine Linux edge package indexes: lab from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Git Wrapper for GitLab | https://zaquestion.github.io/lab/
- apk - lab-bash-completion - 0.25.1-r37: normalized package name match | Alpine Linux edge package indexes: lab-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for lab | https://zaquestion.github.io/lab/
- apk - lab-fish-completion - 0.25.1-r37: normalized package name match | Alpine Linux edge package indexes: lab-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for lab | https://zaquestion.github.io/lab/
- apk - lab-zsh-completion - 0.25.1-r37: normalized package name match | Alpine Linux edge package indexes: lab-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for lab | https://zaquestion.github.io/lab/
- MacPorts - lab: normalized package name match | MacPorts ports tree: devel/lab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/lab: normalized package name match | Scoop official bucket manifest trees: bucket/lab.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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