# 使用 Homebrew, MacPorts, Nix, scoop 安装 jenkins-cli

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

## 安装

```sh
sudo av install brew:jenkins-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jenkins-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jenkins-cli
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jcli
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/jcli
```

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

## 软件包事实

- **软件包键:** brew:jenkins-cli
- **软件包管理器:** Homebrew
- **版本:** 0.0.47
- **来源摘要:** CLI for jenkins
- **主页:** <https://github.com/jenkins-zh/jenkins-cli>
- **仓库:** <https://github.com/jenkins-zh/jenkins-cli>
- **最后更新:** 2026-07-26T04:08:07+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jcli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

jenkins-cli in Homebrew is jcli, a Go command-line client from the Jenkins Chinese community for managing Jenkins servers without using the Java jenkins-cli.jar workflow for every command.

### 项目历史

A Jenkins project blog post in 2019 explains the motivation: Jenkins already had a built-in CLI, but the Java invocation was wordy, required a JRE, and was awkward for users expecting a native command. jcli was created as a Go-based CLI that runs natively on common desktop and server platforms.

The GitHub repository was created in June 2019 and its early release stream began with v0.0.5 that same month. The README presents the tool as useful for plugin developers, administrators, and regular Jenkins users.

### 采用历史

jcli's adoption niche is convenience packaging. The project documentation advertises Homebrew, MacPorts, Linux tarballs, Scoop, and Chocolatey-style installation paths, which turns Jenkins administration into a normal package-manager install instead of a controller-provided jar download.

### 使用方式

The tool focuses on multiple Jenkins server profiles, plugin listing and installation, job search/build/log operations, Configuration as Code support, browser opening, restart commands, and proxy-aware connections. Its config file stores server URL, username, token, and proxy settings so users can switch between Jenkins instances.

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

This formula matters because it packages a third-party Jenkins client under a name that can be confused with Jenkins' built-in CLI. Package users get a native `jcli` binary, not the upstream Jenkins `jenkins-cli.jar`, so the history helps distinguish the Go client from the automation server's own command interface.

### 时间线

- 2019: the jenkins-zh/jenkins-cli repository was created in June.
- 2019: v0.0.5 was published on June 22 as an early GitHub release.
- 2019: the Jenkins project blog described jcli as a Go-native alternative for managing Jenkins from the command line.

### Related projects

- Jenkins' built-in CLI is the direct comparison point and remains distributed by Jenkins controllers as jenkins-cli.jar.
- Configuration as Code is a related Jenkins administration workflow supported by jcli commands.
- The jenkins-zh documentation and plugin repositories form the surrounding project family for jcli.

### 来源

- <https://github.com/jenkins-zh/jenkins-cli>
- <https://github.com/jenkins-zh/jenkins-cli/releases>
- <https://www.jenkins.io/blog/2019/08/30/jenkins-cli/>
- <https://www.jenkins.io/doc/book/managing/cli/>


## 安全说明

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: ~/.jenkins-cli.yaml

## Credential files

- Unix: ~/.jenkins-cli.yaml
## 其他软件包管理器记录

- MacPorts - jenkins-cli: normalized package name match | MacPorts ports tree: devel/jenkins-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - jcli: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/jc/jcli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/jcli: installed executable or alias match | Scoop official bucket manifest trees: bucket/jcli.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/jenkins-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jenkins-cli.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
