Reference

`gog calendar create`

gog calendar create

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

Create an event

#Usage

gog calendar (cal) create (add,new) <calendarId> [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)
--all-dayboolAll-day event (use date-only in --from/--to)
--attachment[]stringFile attachment URL (can be repeated)
--attendeesstringComma-separated attendee emails
--clientstringOAuth client name (selects stored credentials + token bucket)
--colorstringautoColor output: auto|always|never
--descriptionstringDescription
--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
--enable-commandsstringComma-separated list of enabled commands; dot paths allowed (restricts CLI)
--end-timezone
--to-timezone
stringIANA timezone metadata for --to (e.g., America/New_York)
--event-colorstringEvent color ID (1-11). Use 'gog calendar colors' to see available colors.
--event-typestringEvent type: default, focus-time, out-of-office, working-location
--focus-auto-declinestringFocus Time auto-decline mode: none, all, new
--focus-chat-statusstringFocus Time chat status: available, doNotDisturb
--focus-decline-messagestringFocus Time decline message
-y
--force
--assume-yes
--yes
boolSkip confirmations for destructive commands
--fromstringStart time (RFC3339)
--gmail-no-sendboolfalseBlock Gmail send operations (agent safety)
--guests-can-invite*boolAllow guests to invite others
--guests-can-modify*boolAllow guests to modify event
--guests-can-see-others*boolAllow guests to see other guests
-h
--help
kong.helpFlagShow context-sensitive help.
-j
--json
--machine
boolfalseOutput JSON to stdout (best for scripting)
--locationstringLocation
--no-input
--non-interactive
--noninteractive
boolNever prompt; fail instead (useful for CI)
--ooo-auto-declinestringOut of Office auto-decline mode: none, all, new
--ooo-decline-messagestringOut of Office decline message
-p
--plain
--tsv
boolfalseOutput stable, parseable text to stdout (TSV; no colors)
--private-prop[]stringPrivate extended property (key=value, can be repeated)
--reminder[]stringCustom reminders as method:duration (e.g., popup:30m, email:1d). Can be repeated (max 5).
--results-onlyboolIn JSON mode, emit only the primary result (drops envelope fields like nextPageToken)
--rrule[]stringRecurrence rules (e.g., 'RRULE:FREQ=MONTHLY;BYMONTHDAY=11'). Can be repeated.
--select
--pick
--project
stringIn JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands.
--send-updatesstringNotification mode: all, externalOnly, none (default: none)
--shared-prop[]stringShared extended property (key=value, can be repeated)
--source-titlestringTitle of the source
--source-urlstringURL where event was created/imported from
--start-timezone
--from-timezone
stringIANA timezone metadata for --from (e.g., Europe/Rome)
--summarystringEvent summary/title
--tostringEnd time (RFC3339)
--transparencystringShow as busy (opaque) or free (transparent). Aliases: busy, free
-v
--verbose
boolEnable verbose logging
--versionkong.VersionFlagPrint version and exit
--visibilitystringEvent visibility: default, public, private, confidential
--with-meetboolCreate a Google Meet video conference for this event
--working-building-idstringWorking location building ID
--working-custom-labelstringWorking location custom label
--working-desk-idstringWorking location desk ID
--working-floor-idstringWorking location floor ID
--working-location-typestringWorking location type: home, office, custom
--working-office-labelstringWorking location office name/label

#See Also