Reference

`gog calendar out-of-office`

gog calendar out-of-office

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

Create an Out of Office event

#Usage

gog calendar (cal) out-of-office (ooo) --from=STRING --to=STRING [<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-dayboolCreate as all-day event
--auto-declinestringallAuto-decline mode: none, all, new
--clientstringOAuth client name (selects stored credentials + token bucket)
--colorstringautoColor output: auto|always|never
--decline-messagestringI am out of office and will respond when I return.Message for declined invitations
--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)
-y
--force
--assume-yes
--yes
boolSkip confirmations for destructive commands
--fromstringStart date or datetime (RFC3339 or YYYY-MM-DD)
--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)
-p
--plain
--tsv
boolfalseOutput stable, parseable text to stdout (TSV; no colors)
--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.
--summarystringOut of officeOut of office title
--tostringEnd date or datetime (RFC3339 or YYYY-MM-DD)
-v
--verbose
boolEnable verbose logging
--versionkong.VersionFlagPrint version and exit

#See Also