Manage Google Tasks from the terminal.
Usage:
$ gtask [OPTIONS] COMMAND [ARGS]...Options:
--help: Show this message and exit.
Commands:
add: Add a task, optionally as a subtask of…ls: List tasks.show: Show one task in full, with its subtasks.done: Complete a task by its ls number.reopen: Reopen a completed task by its ls number.edit: Update a task’s text, notes, or due date…move: Reorder, reparent, or move a task to…rm: Delete a task by its ls number, or by —id…clear: Remove completed tasks from a list, or…login: Run the one-time browser authorization.lists: Manage task lists.
gtask add
Section titled “gtask add”Add a task, optionally as a subtask of another.
Usage:
$ gtask add [OPTIONS] TEXT [DATE]Arguments:
TEXT: task text [required][DATE]: due date: 22, 22-06, or 22-06-2026
Options:
-l, --list TEXT: target list (created on demand)-n, --notes TEXT: description / notes-u, --under INTEGER: make it a subtask of this ls number-y, --yes: create the list without prompting--help: Show this message and exit.
gtask ls
Section titled “gtask ls”List tasks. Default shows today and overdue across lists.
Usage:
$ gtask ls [OPTIONS]Options:
-l, --list TEXT: limit to one list--all: show every open task--done: include completed tasks--deleted: include deleted tasks--json: output JSON (id, list, title, notes, due)--help: Show this message and exit.
gtask show
Section titled “gtask show”Show one task in full, with its subtasks.
Usage:
$ gtask show [OPTIONS] NArguments:
N: task number from the last ls [required]
Options:
--help: Show this message and exit.
gtask done
Section titled “gtask done”Complete a task by its ls number.
Usage:
$ gtask done [OPTIONS] NArguments:
N: task number from the last ls [required]
Options:
--help: Show this message and exit.
gtask reopen
Section titled “gtask reopen”Reopen a completed task by its ls number.
Usage:
$ gtask reopen [OPTIONS] NArguments:
N: task number from the last ls [required]
Options:
--help: Show this message and exit.
gtask edit
Section titled “gtask edit”Update a task’s text, notes, or due date by its ls number.
Usage:
$ gtask edit [OPTIONS] NArguments:
N: task number from the last ls [required]
Options:
-t, --text TEXT: new text-n, --notes TEXT: new description / notes-d, --date TEXT: new due date--help: Show this message and exit.
gtask move
Section titled “gtask move”Reorder, reparent, or move a task to another list.
Usage:
$ gtask move [OPTIONS] NArguments:
N: task number from the last ls [required]
Options:
-u, --under INTEGER: make it a subtask of this ls number--top: move to the top level (no parent)-a, --after INTEGER: position after this ls number--to TEXT: move to another list by name--help: Show this message and exit.
gtask rm
Section titled “gtask rm”Delete a task by its ls number, or by —id with —list.
Usage:
$ gtask rm [OPTIONS] [N]Arguments:
[N]: task number from the last ls
Options:
--id TEXT: delete by Google task id (needs —list)-l, --list TEXT: list to use with —id--help: Show this message and exit.
gtask clear
Section titled “gtask clear”Remove completed tasks from a list, or from every list.
Usage:
$ gtask clear [OPTIONS]Options:
-l, --list TEXT: limit to one list (default: all lists)-y, --yes: do not prompt--help: Show this message and exit.
gtask login
Section titled “gtask login”Run the one-time browser authorization.
Usage:
$ gtask login [OPTIONS]Options:
--help: Show this message and exit.
gtask lists
Section titled “gtask lists”Manage task lists.
Usage:
$ gtask lists [OPTIONS] COMMAND [ARGS]...Options:
--help: Show this message and exit.
Commands:
add: Create a task list.rename: Rename a task list.rm: Delete a task list and everything in it.
gtask lists add
Section titled “gtask lists add”Create a task list.
Usage:
$ gtask lists add [OPTIONS] NAMEArguments:
NAME: new list name [required]
Options:
--help: Show this message and exit.
gtask lists rename
Section titled “gtask lists rename”Rename a task list.
Usage:
$ gtask lists rename [OPTIONS] OLD NEWArguments:
OLD: current name [required]NEW: new name [required]
Options:
--help: Show this message and exit.
gtask lists rm
Section titled “gtask lists rm”Delete a task list and everything in it.
Usage:
$ gtask lists rm [OPTIONS] NAMEArguments:
NAME: list name [required]
Options:
-y, --yes: do not prompt--help: Show this message and exit.