# 使用 Homebrew 安装 todo-txt

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

## 安装

```sh
sudo av install brew:todo-txt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install todo-txt
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:todo-txt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/todo-txt>
- **版本:** 2.13.0
- **来源摘要:** Minimal, todo.txt-focused editor
- **主页:** <http://todotxt.org/>
- **仓库:** <https://github.com/todotxt/todo.txt-cli>
- **上游文档:** <http://todotxt.org/>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/todotxt/todo.txt-cli/releases/download/v2.13.0/todo.txt_cli-2.13.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- todo.sh (cli)
- todo.sh (别名)

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To configure, copy the default config to your HOME and edit it: cp $HOMEBREW_CELLAR/todo-txt/2.13.0/todo.cfg ~/.todo.cfg
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.13.0
- 本地数据: OK
- 上游仓库: https://github.com/todotxt/todo.txt-cli
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Todo.txt CLI is the canonical shell implementation of the todo.txt method: tasks live in a plain text file and the todo.sh command edits, lists, prioritizes, completes, and archives those lines. The project is unusually durable for a CLI productivity tool because its data model is intentionally simple and portable.

### 项目历史

The official changelog starts with 1.0.0 on 2006-05-11, described as a consolidated master script with usage notes. During 2006 the CLI added path handling, case-insensitive listing, priorities, completion dates, color options, a separated config file, aliases, interactive editing, and task archiving behavior.

The 2009 2.0 series expanded todo.sh beyond a single todo.txt file by adding commands for moving tasks, listing contexts and projects, appending to other files in the todo directory, and auto-archiving completed tasks. Version 2.1.0 added pluggability through a ~/.todo.actions.d directory and a more Unix-style ~/.todo.cfg fallback.

Later releases show a long maintenance arc rather than a rewrite. The 2011 release improved portability for Dropbox or USB-key workflows; 2013 added global /etc/todo/config support and a make install path; 2018 added XDG config/action locations and a code of conduct; 2020 added macOS Catalina support and minimal default filenames; 2024 released v2.13.0 with more priority/list behavior and safer custom-action checks.

### 采用历史

The README documents installation by Homebrew on macOS, make install on Linux, and Arch AUR packaging. It also points users to GitHub Discussions, Issues, Gitter, Reddit, and official social channels, which reflects a long-lived community around both the CLI and the broader todo.txt philosophy.

Todo.txt's adoption has been helped by the fact that its core storage is plain text. The README explicitly mentions common customizations such as moving the todo directory into a cloud drive, modifying colors, highlighting projects and contexts, and using a configuration template even when a global config is installed.

### 使用方式

Users run todo.sh with actions such as add, list, listall, listpri, listcon, listproj, do, archive, append, prepend, replace, and move. The official usage document emphasizes project and context notation, priority sorting, filtering by terms, add-ons, and keeping completed tasks in done.txt.

The package-manager usage pattern is simple: install the script, copy or create a ~/.todo.cfg, keep todo.txt, done.txt, and report.txt in a chosen directory, then bind aliases or shell completions around todo.sh. That makes it easy to script, version, sync, or inspect with standard Unix tools.

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

Todo.txt CLI is a package-nerd touchstone because it reduces a productivity system to a Bash script, a small config file, and line-oriented data. It is attractive to people who prefer grep, sed, version control, Dropbox-style sync, shell aliases, and editor integration over opaque app databases.

The project also influenced other plaintext task tools and integrations. Its changelog and usage docs describe add-ons, custom actions, context/project conventions, and portable config behavior, all of which made it a natural target for downstream packages and small personal automation.

### 时间线

- 2006-05-11: 1.0.0 consolidated the original master script with usage notes.
- 2006-07: 1.6 and 1.7 releases added separated config, interactive actions, aliases, and listall.
- 2009-02: 2.0.0 added file-moving, context/project listing, addto, and auto-archive behavior.
- 2009-02: 2.1.0 added ~/.todo.actions.d pluggability and ~/.todo.cfg fallback.
- 2011-09: 2.8.0 improved portability for Dropbox or USB-key users.
- 2013-12: 2.10.0 added make install and global /etc/todo/config support.
- 2018-03: 2.11.0 added XDG config/action location support.
- 2020-08: 2.12.0 added macOS 10.15 support and minimal default filenames.
- 2024-12: 2.13.0 updated list/priority behavior and custom-action checks.

### Related projects

- The official README and input metadata tie todo.txt CLI to the broader todotxt.org project.
- Tock and Todoman are adjacent command-line productivity tools in this batch; Tock explicitly supports TodoTXT-compatible activity files.

### 来源

- <https://github.com/todotxt/todo.txt-cli#readme>
- <https://github.com/todotxt/todo.txt-cli/blob/master/CHANGELOG.md>
- <https://github.com/todotxt/todo.txt-cli/blob/master/USAGE.md>
- 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.


## Configuration files

- Unix: ~/.todo.cfg, /etc/todo/config
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** todo-txt
- **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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [tuxedo](https://pkg.so/zh-hans/brew/tuxedo/) - Shares pkgdb curated category or tags: cli, productivity, task-management, todo-txt.
- [todoman](https://pkg.so/zh-hans/brew/todoman/) - Shares pkgdb curated category or tags: cli, productivity, task-management, todo.
- [pter](https://pkg.so/zh-hans/brew/pter/) - Shares pkgdb curated category or tags: cli, productivity, task-management, todo-txt.
- [topydo](https://pkg.so/zh-hans/brew/topydo/) - Shares pkgdb curated category or tags: cli, productivity, task-management, todo-txt.
- [ultralist](https://pkg.so/zh-hans/brew/ultralist/) - Shares pkgdb curated category or tags: cli, productivity, task-management, todo.
- [autojump](https://pkg.so/zh-hans/brew/autojump/) - Shares pkgdb curated category or tags: cli, productivity, shell.
- [todoist-cli](https://pkg.so/zh-hans/brew/todoist-cli/) - Shares pkgdb curated category or tags: cli, productivity, task-management.
- [joplin-cli](https://pkg.so/zh-hans/brew/joplin-cli/) - Shares pkgdb curated category or tags: cli, productivity, todo.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
