A simple command-line interface for TickTick task management, designed for AI assistants and automation.
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.
Requires Bun runtime.
# Clone the repository
git clone https://github.com/yourusername/ticktick-cli.git
cd ticktick-cli
# Install globally
bun link- Get your API token from the TickTick Developer Portal
- Configure the CLI:
task config YOUR_API_TOKENYour token is stored securely in the system keychain (macOS Keychain, Linux secret-tool, or environment variable on Windows).
task <command> [arguments] [--json]task config <token> # Save your API token
task config --clear # Remove stored tokentask 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 projecttask 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| 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) |
# 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 --jsonMIT