← Back to CLIs
Nardjo

google-tasks-cli

Manage Google Tasks via CLI - auth, tasklists, tasks. Use when the user mentions 'Google Tasks', 'task list', 'google-tasks-cli', 'mark a Google task done', or wants to create, list, complete, move, or clear tasks through the Google Tasks API.

Install

$ npx api2cli install Nardjo/google-tasks-cli

Details

Skill type: Wrapper CLI
Auth type: oauth
Version: 0.1.0
Author: Nardjo
Views: 1

README

google-tasks-cli

CLI for the Google Tasks API. Auth type: OAuth 2.0 bearer, refreshed from a desktop-client grant.

npx api2cli install Nardjo/google-tasks-cli
google-tasks-cli auth login --credentials ~/Downloads/client_secret.json
google-tasks-cli tasklists list --json

Create a Google Cloud OAuth client of type Desktop app, enable the Tasks API, and download the client JSON. The login command stores that client and a refresh token locally (chmod 600). Scope: https://www.googleapis.com/auth/tasks.

due is a calendar date. The API discards the time.

Resources

tasklists

CommandDescription
google-tasks-cli tasklists list --jsonList task lists
google-tasks-cli tasklists get <tasklist> --jsonGet one list
google-tasks-cli tasklists create --title "Inbox" --jsonCreate a list
google-tasks-cli tasklists update <tasklist> --title "Work" --jsonRename a list
google-tasks-cli tasklists delete <tasklist> --jsonDelete a list

tasks

CommandDescription
google-tasks-cli tasks list <tasklist> --jsonList tasks
google-tasks-cli tasks get <tasklist> <task> --jsonGet one task
google-tasks-cli tasks create <tasklist> --title "Call Tony" --due 2026-09-24 --jsonCreate a task
google-tasks-cli tasks update <tasklist> <task> --status completed --jsonPatch a task
google-tasks-cli tasks complete <tasklist> <task> --jsonMark completed
google-tasks-cli tasks reopen <tasklist> <task> --jsonReopen a task
google-tasks-cli tasks move <tasklist> <task> --destination <tasklist> --jsonMove a task
google-tasks-cli tasks clear <tasklist> --jsonHide completed tasks
google-tasks-cli tasks delete <tasklist> <task> --jsonDelete a task

Repo: https://github.com/Nardjo/google-tasks-cli

Sponsors