googGitHub

High-level Docs editing and Sheets writes

Edit Docs with human anchors such as headings and quoted text, write Sheets values, read Gmail as Markdown, and install goog with one command.

v0.2.0
zsh
~/work $
Weekly signups
docs.google.com/spreadsheets/d/1Sg5Ut2Pv8
A
fxWeek
ABCD
1WeekChannelRegionSignups
2W45SearchEMEA84
3W46SearchAPAC131
4W47ReferralEMEA96
Signups

Edit Docs by headings and text

Map a document, then insert, replace and style text, images, tables and lists by heading or quoted text.

$goog docs map DOCUMENT_ID
$goog docs text replace DOCUMENT_ID --find "draft" --replace "final"
$goog docs image insert DOCUMENT_ID "https://example.test/chart.png" --at 'heading:Summary'

Sheets values

Read, write, append and clear values, or send structural batch updates.

$goog sheets values get SPREADSHEET_ID 'Sheet1!A1:D10'
$goog sheets values append SPREADSHEET_ID 'Sheet1!A:D' --values ./rows.json

Gmail as Markdown

mail read renders messages as Markdown and separates attachments from inline images.

$goog mail list 'from:alerts@example.com newer_than:7d'
$goog mail read MESSAGE_ID

Shared drives and Office files

Drive listings include shared-drive items, and Docs and Sheets can read .docx and .xlsx files.

One consent screen

goog auth login asks for every supported scope at once.

$goog auth login

One-line installer

Install the latest release on macOS or Linux.

$curl -fsSL https://raw.githubusercontent.com/SainyTK/goog-cli/main/install.sh | sh
Downloads and checksums on GitHub