task-tools
CLI tools for managing Google Tasks.
Usage
Usage: task-tools [OPTIONS] COMMAND [ARGS]...
Manage Google Tasks.
Options:
--task-secrets-file PATH Google Tasks client secrets file. [default:
~/secrets/google/client_secrets.json]
--task-refresh-token PATH Google Tasks refresh file (if it exists).
[default: ~/secrets/google/refresh.json]
--task-list-id TEXT UUID of the Task List to query. [default:
MDY2MzkyMzI4NTQ1MTA0NDUwODY6MDow]
--enable-logging BOOLEAN Whether to enable logging. [default: False]
--help Show this message and exit.
Commands:
clean Delete / clean up failed timed tasks.
complete Mark one or more tasks (by UUID) as completed.
complete-by-name Mark all pending tasks due on a date whose names...
delete Delete a particular task by UUID.
delete-by-name Delete all tasks in a range by name.
event Manage Google Calendar events.
grader Generate a CSV report of how consistently tasks have...
list List pending tasks according to a filter ∈ [all, p0,...
move Change the due date of a task in place, keeping its...
put Upload a task.
put-spec Read a CSV of task specifications and idempotently...
list
Usage: task-tools list [OPTIONS] FILTER
List pending tasks according to a filter ∈ [all, p0, p1, p2, p3, late,
ranked].
Options:
--date [%Y-%m-%d] Maximum due date for filtering tasks. [default:
2026-11-02]
--start-date [%Y-%m-%d] Minimum due date for filtering tasks (default: no
minimum).
--no-ids Don't show the UUIDs.
--notes Show task notes.
--help Show this message and exit.
delete
Usage: task-tools delete [OPTIONS] TASK_ID
Delete a particular task by UUID.
Options:
--help Show this message and exit.
put
Usage: task-tools put [OPTIONS]
Upload a task.
Options:
--name TEXT Name of the task. [required]
--notes TEXT Notes to add to the task description. [default: ""]
--date [%Y-%m-%d] Task due date. [default: 2026-11-02]
--until [%Y-%m-%d] Specify an end date if for multiple days. [default:
2026-11-02]
--help Show this message and exit.
put-spec
Usage: task-tools put-spec [OPTIONS]
Read a CSV of task specifications and idempotently put them on your
calendar.
CSV must be pipe-delimited. Example:
d | "Daily Task Name" | "Task Description" w | "Weekly Task Name" | "Each
Sunday" w:fri | "Weekly Task Name" | "Each Friday (any of sun, mon, ...,
sat)" m | "Monthly Task Name" | "First Sunday of each Month" q | "Quarterly
Task Name" | "First Sunday of each Quarter"
A spec instance is skipped if a task (pending or completed) with the same
title is already due that day, or if a task carrying that instance's "spec:
<type>|<title>|<date>" notes marker exists anywhere near the window (i.e.,
it was generated by put-spec and then moved).
Options:
--spec-csv PATH Path to the CSV containing the task specs.
[default: ~/configs/intervaled-tasks.csv]
--start-date [%Y-%m-%d] First day of the window. [default: 2027-01-03]
--end-date [%Y-%m-%d] Last day of the window. [default: 2027-04-04]
--dry-run Do a dry run; no task creations.
--only TEXT Only put the spec line(s) with this title
(repeatable).
--help Show this message and exit.
complete
Usage: task-tools complete [OPTIONS] TASK_IDS...
Mark one or more tasks (by UUID) as completed.
Options:
--help Show this message and exit.
move
Usage: task-tools move [OPTIONS] [TASK_ID]
Change the due date of a task in place, keeping its UUID, title, and notes.
Options:
--date [%Y-%m-%d] New due date for TASK_ID.
--from-file PATH File of '<task-id> <YYYY-MM-DD>' lines (whitespace- or
pipe-delimited; # comments).
--help Show this message and exit.
grader
Usage: task-tools grader [OPTIONS]
Generate a CSV report of how consistently tasks have been completed within
the specified window.
Grading criteria:
- P0: ... tasks must be completed same day. They will be carried over day to
day until completed.
- P1: ... tasks can wait until the next weekly planning session to get
scheduled.
- P2: ... tasks can wait until the next monthly planning session to get
scheduled.
Deletion / failure criteria:
- P[0-3]: [T] ... tasks that have not be completed within the appropriate
window.
Migration patterns:
- P0 manually generated tasks will be migrated to the current day.
- P1 tasks get migrated to P0 tasks at the start of next week.
- P2 tasks get migrated to P0 tasks at the start of next month.
Options:
--start-date [%Y-%m-%d] First day of the grading window. [default:
2026-10-26]
--end-date [%Y-%m-%d] Last day of the grading window. [default:
2026-11-02]
-o, --out PATH CSV file to generate the report in. [default:
~/data/task_grades/log.csv]
--dry-run Do a dry run; no task deletions.
--help Show this message and exit.
event
Usage: task-tools event [OPTIONS] COMMAND [ARGS]...
Manage Google Calendar events.
Options:
--calendar-refresh-token PATH Google Calendar refresh file (separate from
the Tasks one; refreshed via the Auth UI).
[default:
~/secrets/google/calendar_refresh.json]
--calendar-id TEXT ID of the calendar to use. [default:
primary]
--time-zone TEXT IANA time zone for timed events and listing.
[default: America/Los_Angeles]
--help Show this message and exit.
Commands:
list List calendar events in a date range.
put Create a calendar event.