# 使用 Homebrew, Nix 安装 solo2-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install solo2-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#solo2-cli
```

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

## 软件包事实

- **软件包键:** brew:solo2-cli
- **软件包管理器:** Homebrew
- **版本:** 0.2.2
- **来源摘要:** CLI to update and use Solo 2 security keys
- **主页:** <https://solokeys.com/>
- **仓库:** <https://github.com/solokeys/solo2-cli>
- **最后更新:** 2026-07-24T10:42:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- solo2 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

solo2-cli is the Rust command-line utility and library package for SoloKeys Solo 2 security keys, aimed at firmware updates, device-mode management, and developer-oriented administration.

### 项目历史

The official README describes the package as a Solo 2 library and CLI, while noting that the CLI is now maintained in the broader Solo 2 monorepo. The Cargo metadata names the published crate `solo2`, with a `solo2` binary and documentation on docs.rs.

The README reflects the hardware-oriented nature of the project: Solo 2 devices have regular and maintenance modes, Linux maintenance mode needs udev rules, and the CLI can switch between modes with commands such as `solo2 app admin maintenance` and `solo2 bootloader reboot`.

### 采用历史

The official SoloKeys guide positions solo2-cli as the technical-user and developer tool for managing Solo 2, while basic FIDO2 use does not require software installation. The supplied package-manager facts list Homebrew and Nix packages, which matters for users who want a packaged CLI instead of a direct Cargo install.

### 使用方式

The README documents `cargo install solo2`, optional experimental `dev-pki` support, verbose logging flags, device UUID reads, switching to maintenance mode, and bootloader reboot. The SoloKeys guide says the CLI can manage passkeys, update firmware, set PINs, and configure PIV and OpenPGP settings.

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

solo2-cli is interesting because it packages hardware lifecycle operations as a normal developer CLI. It touches USB identifiers, PCSC/CTAP access, udev rules, firmware update flows, Rust crates, and security-key administration in one small executable.

### 时间线

- 2021: The README notes Solo 2 support in the CCID driver from release 1.4.35 on July 25, 2021.
- 2022: Official git tags include the 0.2.x line.
- 2026: The SoloKeys guide presents solo2-cli as the command-line management option for Solo 2.

### Related projects

- The README points to the Solo 2 monorepo as the current maintenance home. It also references lpc55-host, PCSC/CTAP interfaces, CCID driver support, and udev rules.

### 来源

- Input package-manager facts: source_facts.package-manager
- Official Cargo metadata: https://github.com/solokeys/solo2-cli/blob/main/Cargo.toml
- Official README: https://github.com/solokeys/solo2-cli#readme
- Official Solo 2 guide: https://solokeys.com/pages/solo-2-guide
- docs.rs documentation: https://docs.rs/solo2/latest/solo2


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - solo2-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/so/solo2-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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