# 使用 Homebrew, MacPorts, Nix, winget 安装 totp-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install totp-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install totp-cli
```

  证据: MacPorts ports tree: security/totp-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

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

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

### Windows

- winget (92%):

```sh
winget install --id yitsushi.totp-cli -e
```

  证据: Windows Package Manager source index: yitsushi.totp-cli from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:totp-cli
- **软件包管理器:** Homebrew
- **版本:** 1.9.2
- **来源摘要:** Authy/Google Authenticator like TOTP CLI tool written in Go
- **主页:** <https://yitsushi.github.io/totp-cli/>
- **仓库:** <https://github.com/yitsushi/totp-cli>
- **最后更新:** 2026-07-26T00:51:25+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- totp-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

totp-cli is a small Go command-line authenticator for managing and generating time-based one-time passwords. Its project documentation frames it as an Authy or Google Authenticator style tool for the terminal, with encrypted local storage protected by a user password.

### 项目历史

The public release line on GitHub dates back to version 1.0.0 in September 2016. Later documentation records a storage-format migration in version 1.2.8, where stored credentials were upgraded to a more secure format the next time totp-cli wrote to storage.

### 采用历史

The project is packaged beyond its Go install path: the official README documents installation through winget, MacPorts, and Homebrew, while the Homebrew source facts also list MacPorts, Nix, and winget package identifiers. That puts it in the package-manager niche of small security utilities installed directly onto developer workstations.

### 使用方式

Typical use is local and interactive: users add tokens under namespaces, generate codes by namespace and account, list stored accounts, import YAML dumps, and optionally run an instant mode from an environment variable or stdin without using the storage backend.

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

For package nerds, totp-cli is notable less as infrastructure and more as a classic single-purpose terminal security tool: one binary, shell completions, signed release checksums, and package-manager availability for people who prefer authentication workflows inside the shell.

### 时间线

- 2016: Version 1.0.0 published on GitHub Releases.
- v1.2.8: Documentation notes a more secure storage format and automatic credential-store upgrade.
- 2025: GitHub Releases list v1.9.2 as a later release in the 1.x line.

### Related projects

- The README explicitly positions totp-cli against Authy and Google Authenticator as a command-line equivalent for TOTP workflows.

### 来源

- <https://api.github.com/repos/yitsushi/totp-cli/releases>
- <https://github.com/yitsushi/totp-cli#readme>
- source_facts.package-manager


## 安全说明

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.


## Credential files

- Unix: ${HOME}/.config/totp-cli/credentials
## 其他软件包管理器记录

- Nix - totp-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/to/totp-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - totp-cli: normalized package name match | MacPorts ports tree: security/totp-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - yitsushi.totp-cli: normalized package name match | Windows Package Manager source index: yitsushi.totp-cli from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/totp-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/totp-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
