Reference

`gog tasks add`

gog tasks add

Generated from gog schema --json. Do not edit this page by hand; run make docs-commands.

Add a task

#Usage

gog tasks (task) add (create) <tasklistId> [flags]

#Parent

#Flags

FlagTypeDefaultHelp
--access-tokenstringUse provided access token directly (bypasses stored refresh tokens; token expires in ~1h)
-a
--account
--acct
stringAccount email for API commands (gmail/calendar/chat/classroom/drive/docs/slides/contacts/tasks/people/sheets/forms/appscript/ads)
--clientstringOAuth client name (selects stored credentials + token bucket)
--colorstringautoColor output: auto|always|never
--disable-commandsstringComma-separated list of disabled commands; dot paths allowed
-n
--dry-run
--dryrun
--noop
--preview
boolDo not make changes; print intended actions and exit successfully
--duestringDue date (RFC3339 or YYYY-MM-DD; time may be ignored by Google Tasks)
--enable-commandsstringComma-separated list of enabled commands; dot paths allowed (restricts CLI)
-y
--force
--assume-yes
--yes
boolSkip confirmations for destructive commands
--gmail-no-sendboolfalseBlock Gmail send operations (agent safety)
-h
--help
kong.helpFlagShow context-sensitive help.
-j
--json
--machine
boolfalseOutput JSON to stdout (best for scripting)
--no-input
--non-interactive
--noninteractive
boolNever prompt; fail instead (useful for CI)
--notesstringTask notes/description
--parentstringParent task ID (create as subtask)
-p
--plain
--tsv
boolfalseOutput stable, parseable text to stdout (TSV; no colors)
--previousstringPrevious sibling task ID (controls ordering)
--recurstringAlias for --repeat cadence: daily, weekly, monthly, yearly
--recur-rrulestringAlias for --repeat cadence via RRULE (supports FREQ + optional INTERVAL)
--repeatstringMaterialize repeated tasks: daily, weekly, monthly, yearly
--repeat-countintNumber of occurrences to create (requires --repeat, --recur, or --recur-rrule)
--repeat-untilstringRepeat until date/time (RFC3339 or YYYY-MM-DD; requires --repeat, --recur, or --recur-rrule)
--results-onlyboolIn JSON mode, emit only the primary result (drops envelope fields like nextPageToken)
--select
--pick
--project
stringIn JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands.
--titlestringTask title (required)
-v
--verbose
boolEnable verbose logging
--versionkong.VersionFlagPrint version and exit

#See Also