# 使用 Homebrew, MacPorts, Nix, apt 安装 todoist-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install todoist-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install todoist-cli
```

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

### Linux

- Nix (92%):

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

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

- Debian apt (92%):

```sh
sudo apt install libtd-dev
```

  证据: Debian stable package indexes: libtd-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:todoist-cli
- **软件包管理器:** Homebrew
- **版本:** 3.1.2
- **来源摘要:** Official command-line interface for Todoist
- **主页:** <https://github.com/Doist/todoist-cli>
- **最后更新:** 2026-08-02T06:16:45Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- td (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Todoist CLI is Doist's official command-line interface for Todoist, installed as the td command. It represents Todoist's vendor-maintained move into terminal workflows, OAuth-based authentication, shell completion, and coding-agent skill installation.

### 项目历史

The official repository describes Todoist CLI simply as a command-line interface for Todoist and installs it from npm as @doist/todoist-cli. The changelog begins with 1.0.0 on 2026-01-16 and shows rapid 1.x development through 2026, with semantic-release automation documented in CONTRIBUTING.md.

The README documents browser-based Todoist authentication, read-only OAuth mode, optional additional OAuth scopes, manual token and environment-variable authentication, OS credential-manager storage, and a plaintext fallback config path. This is a more vendor-integrated model than older unofficial Todoist CLIs, which typically relied directly on user API tokens.

By mid-2026 the changelog shows many feature additions beyond basic tasks: accounts, projects, sections, labels, comments, reminders, billing, apps, backups, goals, Markdown output behavior, and Todoist SDK upgrades. The README also documents installing agent skills for tools such as codex, claude-code, copilot, cursor, gemini, pi, and universal.

### 采用历史

The input metadata shows the official CLI packaged by Homebrew, MacPorts, Nix, and Debian metadata, while the README uses npm as the primary installation channel. In Homebrew, this package occupies the todoist-cli name, while the older Go client is named todoist-cli-go.

The agent-skill commands are a notable adoption signal for the current package-nerd niche: Todoist CLI is not only for humans at a shell prompt, but also for local coding agents that can read a Todoist-specific skill and operate through td.

### 使用方式

Users authenticate with td auth login, then run commands such as td add, td today, td inbox, td task list, td project list, and td task view. The README also documents shell completions for bash, zsh, and fish, accessibility flags, read-only mode, additional OAuth scopes, and environment-token fallback.

Package-conscious users care about where credentials land. The official README says tokens are stored in macOS Keychain, Windows Credential Manager, or Linux Secret Service/libsecret when available, with a warning and fallback to ~/.config/todoist-cli/config.json if secure storage is unavailable.

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

Todoist CLI is significant because it turns a hosted task system into a first-party terminal tool with npm, Homebrew, MacPorts, and Nix packaging. It also clarifies the package-name collision with the earlier Go client in this batch.

Its 2026 agent-skill support makes it especially relevant to package nerds building local AI or automation stacks: it packages not just a CLI, but also command knowledge for agents to install into their own skill directories.

### 时间线

- 2026-01-16: 1.0.0 appears as the first official changelog entry.
- 2026-03-31: 1.34.0 added read-only OAuth mode for safer autonomous tool use.
- 2026-05-07: 1.62.0 added GitHub Copilot skill installation instructions.
- 2026-06-29: 1.75.3 fixed Pi skill installation in the agent directory.

### Related projects

- sachaos/todoist is the older unofficial Go Todoist CLI that Homebrew now names todoist-cli-go.
- The CLI depends on Doist's Todoist SDK according to the official changelog.

### 来源

- <https://github.com/Doist/todoist-cli#readme>
- <https://github.com/Doist/todoist-cli/blob/main/CHANGELOG.md>
- <https://github.com/Doist/todoist-cli/blob/main/CONTRIBUTING.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: ~/.config/todoist/config.json

## Credential files

- Unix: ~/.config/todoist/config.json, ~/.config/todoist/cache.json
## 其他软件包管理器记录

- Nix - todoist-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/to/todoist-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - todoist-cli: normalized package name match | MacPorts ports tree: office/todoist-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - libtd-dev - 1.8.38~git20241021.d321984+dfsg-4: installed executable or alias match | Debian stable package indexes: libtd-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | telegram database library (development headers) | https://github.com/tdlib/td
- Debian apt - libtd-doc - 1.8.38~git20241021.d321984+dfsg-4: installed executable or alias match | Debian stable package indexes: libtd-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | telegram database library (development documentation) | https://github.com/tdlib/td
- Debian apt - libtd-shim - 1.8.38~git20241021.d321984+dfsg-4: installed executable or alias match | Debian stable package indexes: libtd-shim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | telegram database library (version-independent CMake shim) | https://github.com/tdlib/td
- Debian apt - libtdjson1.8.38 - 1.8.38~git20241021.d321984+dfsg-4: installed executable or alias match | Debian stable package indexes: libtdjson1.8.38 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | telegram database library | https://github.com/tdlib/td
- Nix - td: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/td/td/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/todoist-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/todoist-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
