Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Command-line interface for Todoist

Notifications You must be signed in to change notification settings

Doist/todoist-cli

Repository files navigation

Todoist CLI

A command-line interface for Todoist.

Installation

npm install -g @doist/todoist-cli

Local Setup (for now)

git clone https://github.com/Doist/todoist-cli.git
cd todoist-cli
npm install
npm run build
npm link

This makes the td command available globally.

Setup

td auth login

This opens your browser to authenticate with Todoist. Once approved, the token is saved automatically.

Alternative methods

Manual token: Get your API token from Todoist Settings > Integrations > Developer:

td auth token "your-token"

Environment variable:

export TODOIST_API_TOKEN="your-token"

Auth commands

td auth status # check if authenticated
td auth logout # remove saved token

Usage

td add "Buy milk tomorrow #Shopping" # quick add with natural language
td today # tasks due today + overdue
td inbox # inbox tasks
td task list # all tasks
td task list --project "Work" # tasks in project
td project list # all projects
td task view https://app.todoist.com/app/task/buy-milk-8Jx4mVr72kPn3QwB # paste a URL

Run td --help or td <command> --help for more options.

Shell Completions

Tab completion is available for bash, zsh, and fish:

td completion install # prompts for shell
td completion install bash # or: zsh, fish

Restart your shell or source your config file to activate. To remove:

td completion uninstall

Development

npm install
npm run build # compile
npm run dev # watch mode
npm run type-check # type check
npm run format # format code
npm test # run tests

About

Command-line interface for Todoist

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 10

AltStyle によって変換されたページ (->オリジナル) /