# 使用 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
- **版本:** 2.0.0
- **来源摘要:** General-purpose CLI tool for the Mender backend
- **主页:** <https://mender.io>
- **仓库:** <https://github.com/mendersoftware/mender-cli>
- **最后更新:** 2026-07-29T17:04:53+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mender-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
