# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/solo2-cli>
- **版本:** 0.2.2
- **来源摘要:** CLI to update and use Solo 2 security keys
- **主页:** <https://solokeys.com/>
- **仓库:** <https://github.com/solokeys/solo2-cli>
- **上游文档:** <https://docs.rs/solo2/latest/solo2>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/solokeys/solo2-cli/archive/refs/tags/v0.2.2.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- solo2 (cli)
- solo2 (别名)

## 构建依赖

- pkgconf
- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.2.2
- 本地数据: OK
- 上游仓库: https://github.com/solokeys/solo2-cli
- 检测到的最新版本: v0.2.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [libfido2](https://www.automicvault.com/zh-hans/pkg/brew/libfido2/) - Shares av.db curated category or tags: authentication, cli, fido2, hardware-security, security.
- [pam-u2f](https://www.automicvault.com/zh-hans/pkg/brew/pam-u2f/) - Shares av.db curated category or tags: authentication, cli, fido2, security.
- [cotp](https://www.automicvault.com/zh-hans/pkg/brew/cotp/) - Shares av.db curated category or tags: authentication, cli, security.
- [cyrus-sasl](https://www.automicvault.com/zh-hans/pkg/brew/cyrus-sasl/) - Shares av.db curated category or tags: authentication, cli, security.
- [duo_unix](https://www.automicvault.com/zh-hans/pkg/brew/duo-unix/) - Shares av.db curated category or tags: authentication, cli, security.
- [gauth](https://www.automicvault.com/zh-hans/pkg/brew/gauth/) - Shares av.db curated category or tags: authentication, cli, security.
- [google-authenticator-libpam](https://www.automicvault.com/zh-hans/pkg/brew/google-authenticator-libpam/) - Shares av.db curated category or tags: authentication, cli, security.
- [gotpm](https://www.automicvault.com/zh-hans/pkg/brew/gotpm/) - Shares av.db curated category or tags: cli, hardware-security, security.
- [onlykey-agent](https://www.automicvault.com/zh-hans/pkg/brew/onlykey-agent/) - Security-sensitive metadata or terminology overlaps. Shared terms: authentication, cli, hardware, key, keys.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
