Skip to content

About

A CLI for TickTick task management, designed for AI assistants

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TickTick CLI

A simple command-line interface for TickTick task management, designed for AI assistants and automation.

Why?

I find myself spending more and more time in the terminal these days with all the AI assistants and possibilities. I built getpontius.com to help me solve all my emails, and figured I'd make a quick CLI tool for tasks so that AI assistants can help me with my emails, tasks, and everything else in one place.

TickTick is pretty simple to use, so I grabbed their API docs and made something super fast and effective for when I need to quickly create a new task or project and write things down without leaving the terminal.

Installation

Requires Bun runtime.

# Clone the repository
git clone https://github.com/yourusername/ticktick-cli.git
cd ticktick-cli

# Install globally
bun link

Setup

  1. Get your API token from the TickTick Developer Portal
  2. Configure the CLI:
task config YOUR_API_TOKEN

Your token is stored securely in the system keychain (macOS Keychain, Linux secret-tool, or environment variable on Windows).

Usage

task <command> [arguments] [--json]

Configuration

task config <token>       # Save your API token
task config --clear       # Remove stored token

Projects

task projects                          # List all projects
task project <projectId>               # Get project details
task project-add <name>                # Create a new project
task project-add <name> --color "#F18181" --view kanban
task project-update <projectId> --name "New Name"
task project-delete <projectId>        # Delete a project

Tasks

task list <projectId>                  # List all tasks in a project
task get <projectId> <taskId>          # Get a specific task
task add <projectId> "Task title"      # Create a new task
task add <projectId> "Task" --due 2024-12-25 --priority 5
task update <taskId> --project <projectId> --title "New title"
task done <projectId> <taskId>         # Mark task as complete
task delete <projectId> <taskId>       # Delete a task

Options

Flag Description
--json Output raw JSON instead of formatted text
--due <YYYY-MM-DD> Set due date
--priority <0-5> Set priority (0=None, 1=Low, 3=Medium, 5=High)
--content <text> Set task content/notes
--color <hex> Set project color
--view <mode> Set view mode (list, kanban, timeline)

Examples

# List all projects
task projects

# List tasks in a project
task list 6226ff9877acee87727f6bca

# Add a high-priority task with a due date
task add 6226ff98... "Finish report" --due 2024-12-31 --priority 5

# Complete a task
task done 6226ff98... 63b7bebb...

# Get JSON output for scripting
task projects --json

License

MIT

About

A CLI for TickTick task management, designed for AI assistants

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages