# Install mender-cli with Homebrew, apt

General-purpose CLI tool for the Mender backend. Version 2.0.0 via Homebrew; verified 2026-06-13.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

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

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

## Package facts

- **Package key:** brew:mender-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mender-cli>
- **Version:** 2.0.0
- **Source summary:** General-purpose CLI tool for the Mender backend
- **Homepage:** <https://mender.io>
- **Repository:** <https://github.com/mendersoftware/mender-cli>
- **Upstream docs:** <https://docs.mender.io/downloads/workstation-tools>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/mendersoftware/mender-cli/archive/refs/tags/2.0.0.tar.gz>
- **Last updated:** 2026-06-13T23:35:05+02:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- mender-cli (cli)
- mender-cli (alias)

## Dependencies

- openssl@3
- xz

## Build dependencies

- go
- pkgconf

## 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: 2.0.0
- Package-manager updated: 2026-06-13
- Local data: ok
- Upstream repository: https://github.com/mendersoftware/mender-cli
- Upstream latest detected: 2.0.0 (current)
## Project history and usage

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.

### Project history

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.

### How it is used

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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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 Details

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

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mender-artifact](https://www.automicvault.com/pkg/brew/mender-artifact/) - Shares the same upstream homepage.
- [confd](https://www.automicvault.com/pkg/brew/confd/) - Shares av.db curated category or tags: cli, go, system.
- [cpuid](https://www.automicvault.com/pkg/brew/cpuid/) - Shares av.db curated category or tags: cli, go, system.
- [fwup](https://www.automicvault.com/pkg/brew/fwup/) - Shares av.db curated category or tags: cli, embedded-linux, system.
- [g-ls](https://www.automicvault.com/pkg/brew/g-ls/) - Shares av.db curated category or tags: cli, go, system.
- [gdu](https://www.automicvault.com/pkg/brew/gdu/) - Shares av.db curated category or tags: cli, go, system.
- [gops](https://www.automicvault.com/pkg/brew/gops/) - Shares av.db curated category or tags: cli, go, system.
- [gtrash](https://www.automicvault.com/pkg/brew/gtrash/) - Shares av.db curated category or tags: cli, go, system.
- [systemd](https://www.automicvault.com/pkg/brew/systemd/) - Local package facts share a topical domain. Shared terms: cli, linux, management, openssl, openssl-3.
- [dwarfs](https://www.automicvault.com/pkg/brew/dwarfs/) - 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/automic-vault/db/blob/main/combined/mender-cli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
