Create documents
Start a blank document from the terminal.
$
goog docs create "Q3 Report"Create Docs from scratch with page breaks, headers, footers, footnotes and named ranges. Tokens move to one local file, so agents run without password prompts.
Start a blank document from the terminal.
goog docs create "Q3 Report"Add page breaks, headers, footers, footnotes and named ranges without raw batch updates.
goog docs break page DOCUMENT_ID --at 'heading:Summary'goog docs header create DOCUMENT_IDgoog docs footnote insert DOCUMENT_ID --at 'after-text:quarterly plan'goog docs named-range create DOCUMENT_ID "highlights" --text "quarterly plan"Change an existing draft from the terminal.
goog mail draft DRAFT_ID --body @./revised.txtAccounts and tokens live in ~/.goog/auth.json with restricted permissions, so terminal and agent workflows read tokens without operating-system password prompts.