# 使用 Homebrew, apt 安装 mender-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mender-cli
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mender-cli
```

  证据: Debian stable package indexes: mender-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:mender-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mender-cli>
- **版本:** 2.0.0
- **来源摘要:** General-purpose CLI tool for the Mender backend
- **主页:** <https://mender.io>
- **仓库:** <https://github.com/mendersoftware/mender-cli>
- **上游文档:** <https://mender.io>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/mendersoftware/mender-cli/archive/refs/tags/2.0.0.tar.gz>
- **最后更新:** 2026-07-29T17:04:53+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mender-cli (cli)
- mender-cli (别名)

## 依赖

- openssl@3
- xz

## 构建依赖

- go
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.0
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/mendersoftware/mender-cli
- 检测到的最新版本: 2.0.0 (当前)
## 项目历史与用法

mender-cli is a general-purpose command-line client for the Mender backend. The project README states its goal directly: simplify integration between the Mender server and cloud services such as CI and build automation, then expand toward common backend integration use cases. It belongs beside mender-artifact in the Mender workstation-tool set: mender-artifact prepares update files, while mender-cli talks to the server-side APIs and operational features.

### 项目历史

The release notes show a tool that broadened from authentication and configuration plumbing into more operational workflows. Version 1.2.0 stored login tokens in the XDG cache directory in 2019; 1.3.0 added macOS binary publication; 1.4.0 added two-factor login support; 1.5.0 added configuration-file lookup and shell completion; 1.6.0 added artifact listing and remote terminal access; later 1.8.x and 1.9.x entries added artifact deletion, raw device-list output, troubleshoot improvements, port-forward reliability work, and personal-access-token/JWT support.

### 使用方式

In practice, teams use mender-cli in scripts and CI jobs to authenticate to hosted or self-hosted Mender, list and manage artifacts, interact with devices, and automate deployment-adjacent server tasks. Its configuration-file locations and credential options make it a package-manager-facing CLI rather than a library dependency.

### 来源

- <https://docs.mender.io/downloads/workstation-tools>
- <https://docs.mender.io/release-information/release-notes-changelog/mender-cli>
- <https://docs.mender.io/server-integration/using-the-apis>
- <https://github.com/mendersoftware/mender-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: /etc/mender-cli/.mender-clirc, ~/.mender-clirc, ./.mender-clirc

## Credential files

- Unix: /etc/mender-cli/.mender-clirc, ~/.mender-clirc, ./.mender-clirc
## 源数据库详情

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

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

- Debian apt - mender-cli - 1.9.0+ds1-1+b16: normalized package name match | Debian stable package indexes: mender-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | general-purpose CLI for the Mender backend | https://github.com/mendersoftware/mender-cli
- Ubuntu apt - mender-cli - 1.9.0+ds1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mender-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | general-purpose CLI for the Mender backend | https://github.com/mendersoftware/mender-cli


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [mender-artifact](https://pkg.so/zh-hans/brew/mender-artifact/) - Shares the same upstream homepage.
- [scrcpy](https://pkg.so/zh-hans/brew/scrcpy/) - Shares pkgdb curated category or tags: cli, device-management, system.
- [mactop](https://pkg.so/zh-hans/brew/mactop/) - Shares pkgdb curated category or tags: cli, go, system.
- [gdu](https://pkg.so/zh-hans/brew/gdu/) - Shares pkgdb curated category or tags: cli, go, system.
- [witr](https://pkg.so/zh-hans/brew/witr/) - Shares pkgdb curated category or tags: cli, go, system.
- [mmctl](https://pkg.so/zh-hans/brew/mmctl/) - Shares pkgdb curated category or tags: api-client, cli, system.
- [hostess](https://pkg.so/zh-hans/brew/hostess/) - Shares pkgdb curated category or tags: cli, go, system.
- [fwup](https://pkg.so/zh-hans/brew/fwup/) - Shares pkgdb curated category or tags: cli, embedded-linux, system.
- [dwarfs](https://pkg.so/zh-hans/brew/dwarfs/) - Local package facts share a topical domain. Shared terms: cli, linux, openssl, openssl-3, system.
- [systemd](https://pkg.so/zh-hans/brew/systemd/) - Local package facts share a topical domain. Shared terms: cli, linux, openssl, openssl-3, system.

## Combined YAML source

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


## 来源

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