38 KiB
38 KiB
Command Reference
Generated from gog schema --json.
gog <command> [flags]- Google CLI for Gmail/Calendar/Chat/Classroom/Drive/Contacts/Tasks/Sheets/Docs/Slides/People/Forms/App Script/Ads/Groups/Admin/Keepgog admin <command> [flags]- Google Workspace Admin (Directory API) - requires domain-wide delegationgog admin groups <command>- Manage Workspace groupsgog admin groups list (ls) [flags]- List groups in a domaingog admin groups members <command>- Manage group membersgog admin groups members add (invite) <groupEmail> <memberEmail> [flags]- Add a member to a groupgog admin groups members list (ls) <groupEmail> [flags]- List group membersgog admin groups members remove (rm,del,delete) <groupEmail> <memberEmail>- Remove a member from a groupgog admin users <command>- Manage Workspace usersgog admin users create (add,new) <email> [flags]- Create a new usergog admin users get (info,show) <userEmail>- Get user detailsgog admin users list (ls) [flags]- List users in a domaingog admin users suspend <userEmail>- Suspend a user accountgog agent <command> [flags]- Agent-friendly helpersgog agent exit-codes (exitcodes,exit-code)- Print stable exit codes for automationgog appscript (script,apps-script) <command> [flags]- Google Apps Scriptgog appscript (script,apps-script) content (cat) <scriptId>- Get Apps Script project contentgog appscript (script,apps-script) create (new) --title=STRING [flags]- Create an Apps Script projectgog appscript (script,apps-script) get (info,show) <scriptId>- Get Apps Script project metadatagog appscript (script,apps-script) run <scriptId> <function> [flags]- Run a deployed Apps Script functiongog auth <command> [flags]- Auth and credentialsgog auth add <email> [flags]- Authorize and store a refresh tokengog auth alias <command>- Manage account aliasesgog auth alias list- List account aliasesgog auth alias set <alias> <email>- Set an account aliasgog auth alias unset <alias>- Remove an account aliasgog auth credentials <command>- Manage OAuth client credentialsgog auth credentials list- List stored OAuth client credentialsgog auth credentials remove [<client>]- Remove stored OAuth client credentialsgog auth credentials set <credentials> [flags]- Store OAuth client credentialsgog auth doctor [flags]- Diagnose auth, keyring, and refresh-token issuesgog auth keep --key=STRING <email>- Configure service account for Google Keep (Workspace only)gog auth keyring [<backend> [<backend2>]]- Configure keyring backendgog auth list [flags]- List stored accountsgog auth manage (login) [flags]- Open accounts manager in browsergog auth remove <email>- Remove a stored refresh tokengog auth service-account <command>- Configure service account (Workspace only; domain-wide delegation)gog auth service-account set --key=STRING <email>- Store a service account key for impersonationgog auth service-account status <email>- Show stored service account key statusgog auth service-account unset <email>- Remove stored service account keygog auth services [flags]- List supported auth services and scopesgog auth status- Show auth configuration and keyring backendgog auth tokens <command>- Manage stored refresh tokensgog auth tokens delete <email>- Delete a stored refresh tokengog auth tokens export <email> [flags]- Export a refresh token to a file (contains secrets)gog auth tokens import <inPath>- Import a refresh token file into keyring (contains secrets)gog auth tokens list- List stored tokens (by key only)gog backup <command> [flags]- Encrypted Google account backupsgog backup cat <shard> [flags]- Decrypt one backup shard to stdoutgog backup export [flags]- Write a local plaintext exportgog backup gmail <command>- Gmail backup operationsgog backup gmail push [flags]- Export Gmail into encrypted backup shardsgog backup init [flags]- Initialize encrypted backup config and repositorygog backup push [flags]- Export services into encrypted backup shardsgog backup status [flags]- Inspect backup manifest without decrypting shardsgog backup verify [flags]- Decrypt and verify all backup shardsgog calendar (cal) <command> [flags]- Google Calendargog calendar (cal) acl (permissions,perms) <calendarId> [flags]- List calendar ACLgog calendar (cal) alias <command>- Manage calendar aliasesgog calendar (cal) alias list- List calendar aliasesgog calendar (cal) alias set <alias> <calendarId>- Set a calendar aliasgog calendar (cal) alias unset <alias>- Remove a calendar aliasgog calendar (cal) calendars [flags]- List calendarsgog calendar (cal) colors- Show calendar colorsgog calendar (cal) conflicts [flags]- Find conflictsgog calendar (cal) create (add,new) <calendarId> [flags]- Create an eventgog calendar (cal) create-calendar (new-calendar) <summary> [flags]- Create a new secondary calendargog calendar (cal) delete (rm,del,remove) <calendarId> <eventId> [flags]- Delete an eventgog calendar (cal) event (get,info,show) <calendarId> <eventId>- Get eventgog calendar (cal) events (list,ls) [<calendarId>] [flags]- List events from a calendar or all calendarsgog calendar (cal) focus-time (focus) --from=STRING --to=STRING [<calendarId>] [flags]- Create a Focus Time blockgog calendar (cal) freebusy [<calendarIds>] [flags]- Get free/busygog calendar (cal) out-of-office (ooo) --from=STRING --to=STRING [<calendarId>] [flags]- Create an Out of Office eventgog calendar (cal) propose-time <calendarId> <eventId> [flags]- Generate URL to propose a new meeting time (browser-only feature)gog calendar (cal) respond (rsvp,reply) <calendarId> <eventId> [flags]- Respond to an event invitationgog calendar (cal) search (find,query) <query> [flags]- Search eventsgog calendar (cal) subscribe (sub,add-calendar) <calendarId> [flags]- Add a calendar to your calendar listgog calendar (cal) team <group-email> [flags]- Show events for all members of a Google Groupgog calendar (cal) time [flags]- Show server timegog calendar (cal) update (edit,set) <calendarId> <eventId> [flags]- Update an eventgog calendar (cal) users [flags]- List workspace users (use their email as calendar ID)gog calendar (cal) working-location (wl) --from=STRING --to=STRING --type=STRING [<calendarId>] [flags]- Set working location (home/office/custom)gog chat <command> [flags]- Google Chatgog chat dm <command>- Direct messagesgog chat dm send (create,post) <email> [flags]- Send a direct messagegog chat dm space (find,setup) <email>- Find or create a DM spacegog chat messages <command>- Chat messagesgog chat messages list (ls) <space> [flags]- List messagesgog chat messages react <message> <emoji> [flags]- Add an emoji reaction to a messagegog chat messages reactions (reaction) <command>- Manage emoji reactions on a messagegog chat messages reactions (reaction) create (add) <message> <emoji> [flags]- Add an emoji reaction to a messagegog chat messages reactions (reaction) delete (remove,rm) <reaction>- Delete a reactiongog chat messages reactions (reaction) list (ls) <message> [flags]- List reactions on a messagegog chat messages send (create,post) <space> [flags]- Send a messagegog chat spaces <command>- Chat spacesgog chat spaces create (add,new) <displayName> [flags]- Create a spacegog chat spaces find (search,query) <displayName> [flags]- Find spaces by display namegog chat spaces list (ls) [flags]- List spacesgog chat threads <command>- Chat threadsgog chat threads list <space> [flags]- List threads in a spacegog classroom (class) <command> [flags]- Google Classroomgog classroom (class) announcements (announcement,ann) <command>- Announcementsgog classroom (class) announcements (announcement,ann) assignees (assign) <courseId> <announcementId> [flags]- Modify announcement assigneesgog classroom (class) announcements (announcement,ann) create (add,new) --text=STRING <courseId> [flags]- Create an announcementgog classroom (class) announcements (announcement,ann) delete (rm,del,remove) <courseId> <announcementId>- Delete an announcementgog classroom (class) announcements (announcement,ann) get (info,show) <courseId> <announcementId>- Get an announcementgog classroom (class) announcements (announcement,ann) list (ls) <courseId> [flags]- List announcementsgog classroom (class) announcements (announcement,ann) update (edit,set) <courseId> <announcementId> [flags]- Update an announcementgog classroom (class) courses (course) <command>- Coursesgog classroom (class) courses (course) archive (arch) <courseId>- Archive a coursegog classroom (class) courses (course) create (add,new) --name=STRING [flags]- Create a coursegog classroom (class) courses (course) delete (rm,del,remove) <courseId>- Delete a coursegog classroom (class) courses (course) get (info,show) <courseId>- Get a coursegog classroom (class) courses (course) join (enroll) <courseId> [flags]- Join a coursegog classroom (class) courses (course) leave (unenroll) <courseId> [flags]- Leave a coursegog classroom (class) courses (course) list (ls) [flags]- List coursesgog classroom (class) courses (course) unarchive (unarch,restore) <courseId>- Unarchive a coursegog classroom (class) courses (course) update (edit,set) <courseId> [flags]- Update a coursegog classroom (class) courses (course) url (link) <courseId> ...- Print Classroom web URLs for coursesgog classroom (class) coursework (work) <command>- Courseworkgog classroom (class) coursework (work) assignees (assign) <courseId> <courseworkId> [flags]- Modify coursework assigneesgog classroom (class) coursework (work) create (add,new) --title=STRING <courseId> [flags]- Create courseworkgog classroom (class) coursework (work) delete (rm,del,remove) <courseId> <courseworkId>- Delete courseworkgog classroom (class) coursework (work) get (info,show) <courseId> <courseworkId>- Get courseworkgog classroom (class) coursework (work) list (ls) <courseId> [flags]- List courseworkgog classroom (class) coursework (work) update (edit,set) <courseId> <courseworkId> [flags]- Update courseworkgog classroom (class) guardian-invitations (guardian-invites) <command>- Guardian invitationsgog classroom (class) guardian-invitations (guardian-invites) create (add,new) --email=STRING <studentId>- Create a guardian invitationgog classroom (class) guardian-invitations (guardian-invites) get (info,show) <studentId> <invitationId>- Get a guardian invitationgog classroom (class) guardian-invitations (guardian-invites) list (ls) <studentId> [flags]- List guardian invitationsgog classroom (class) guardians (guardian) <command>- Guardiansgog classroom (class) guardians (guardian) delete (rm,del,remove) <studentId> <guardianId>- Delete a guardiangog classroom (class) guardians (guardian) get (info,show) <studentId> <guardianId>- Get a guardiangog classroom (class) guardians (guardian) list (ls) <studentId> [flags]- List guardiansgog classroom (class) invitations (invitation,invites) <command>- Invitationsgog classroom (class) invitations (invitation,invites) accept (join) <invitationId>- Accept an invitationgog classroom (class) invitations (invitation,invites) create (add,new) --role=STRING <courseId> <userId>- Create an invitationgog classroom (class) invitations (invitation,invites) delete (rm,del,remove) <invitationId>- Delete an invitationgog classroom (class) invitations (invitation,invites) get (info,show) <invitationId>- Get an invitationgog classroom (class) invitations (invitation,invites) list (ls) [flags]- List invitationsgog classroom (class) materials (material) <command>- Coursework materialsgog classroom (class) materials (material) create (add,new) --title=STRING <courseId> [flags]- Create coursework materialgog classroom (class) materials (material) delete (rm,del,remove) <courseId> <materialId>- Delete coursework materialgog classroom (class) materials (material) get (info,show) <courseId> <materialId>- Get coursework materialgog classroom (class) materials (material) list (ls) <courseId> [flags]- List coursework materialsgog classroom (class) materials (material) update (edit,set) <courseId> <materialId> [flags]- Update coursework materialgog classroom (class) profile (me) <command>- User profilesgog classroom (class) profile (me) get [<userId>]- Get a user profilegog classroom (class) roster (members) <courseId> [flags]- Course roster (students + teachers)gog classroom (class) students (student) <command>- Course studentsgog classroom (class) students (student) add (create,new) <courseId> <userId> [flags]- Add a studentgog classroom (class) students (student) get (info,show) <courseId> <userId>- Get a studentgog classroom (class) students (student) list (ls) <courseId> [flags]- List studentsgog classroom (class) students (student) remove (delete,rm,del,remove) <courseId> <userId>- Remove a studentgog classroom (class) submissions (submission) <command>- Student submissionsgog classroom (class) submissions (submission) get (info,show) <courseId> <courseworkId> <submissionId>- Get a student submissiongog classroom (class) submissions (submission) grade (set,edit) <courseId> <courseworkId> <submissionId> [flags]- Set draft/assigned gradesgog classroom (class) submissions (submission) list (ls) <courseId> <courseworkId> [flags]- List student submissionsgog classroom (class) submissions (submission) reclaim (undo) <courseId> <courseworkId> <submissionId>- Reclaim a submissiongog classroom (class) submissions (submission) return (send) <courseId> <courseworkId> <submissionId>- Return a submissiongog classroom (class) submissions (submission) turn-in (turnin) <courseId> <courseworkId> <submissionId>- Turn in a submissiongog classroom (class) teachers (teacher) <command>- Course teachersgog classroom (class) teachers (teacher) add (create,new) <courseId> <userId>- Add a teachergog classroom (class) teachers (teacher) get (info,show) <courseId> <userId>- Get a teachergog classroom (class) teachers (teacher) list (ls) <courseId> [flags]- List teachersgog classroom (class) teachers (teacher) remove (delete,rm,del,remove) <courseId> <userId>- Remove a teachergog classroom (class) topics (topic) <command>- Topicsgog classroom (class) topics (topic) create (add,new) --name=STRING <courseId>- Create a topicgog classroom (class) topics (topic) delete (rm,del,remove) <courseId> <topicId>- Delete a topicgog classroom (class) topics (topic) get (info,show) <courseId> <topicId>- Get a topicgog classroom (class) topics (topic) list (ls) <courseId> [flags]- List topicsgog classroom (class) topics (topic) update (edit,set) --name=STRING <courseId> <topicId>- Update a topicgog completion <shell> [flags]- Generate shell completion scriptsgog config <command> [flags]- Manage configurationgog config get (show) <key>- Get a config valuegog config keys (list-keys,names)- List available config keysgog config list (ls,all)- List all config valuesgog config no-send (nosend) <command>- Manage per-account Gmail no-send guardsgog config no-send (nosend) list (ls)- List accounts with no-send guardsgog config no-send (nosend) remove (rm,del,delete,unset,disable) <account>- Remove an account no-send guardgog config no-send (nosend) set (add,enable) <account>- Block Gmail send operations for an accountgog config path (where)- Print config file pathgog config set (add,update) <key> <value>- Set a config valuegog config unset (rm,del,remove) <key>- Unset a config valuegog contacts (contact) <command> [flags]- Google Contactsgog contacts (contact) create (add,new) [flags]- Create a contactgog contacts (contact) delete (rm,del,remove) <resourceName>- Delete a contactgog contacts (contact) directory <command>- Directory contactsgog contacts (contact) directory list [flags]- List people from the Workspace directorygog contacts (contact) directory search <query> ... [flags]- Search people in the Workspace directorygog contacts (contact) export [<selector>] [flags]- Export contacts as vCard (.vcf)gog contacts (contact) get (info,show) <resourceName>- Get a contactgog contacts (contact) list (ls) [flags]- List contactsgog contacts (contact) other <command>- Other contactsgog contacts (contact) other delete <resourceName>- Delete an other contactgog contacts (contact) other list [flags]- List other contactsgog contacts (contact) other search <query> ... [flags]- Search other contactsgog contacts (contact) search <query> ... [flags]- Search contacts by name/email/phonegog contacts (contact) update (edit,set) <resourceName> [flags]- Update a contactgog docs (doc) <command> [flags]- Google Docs (export via Drive)gog docs (doc) cat (text,read) <docId> [flags]- Print a Google Doc as plain textgog docs (doc) clear <docId>- Clear all content from a Google Docgog docs (doc) comments <command>- Manage comments on filesgog docs (doc) comments add (create,new) <docId> <content> [flags]- Add a comment to a Google Docgog docs (doc) comments delete (rm,del,remove) <docId> <commentId>- Delete a commentgog docs (doc) comments get (info,show) <docId> <commentId>- Get a comment by IDgog docs (doc) comments list (ls) <docId> [flags]- List comments on a Google Docgog docs (doc) comments reply (respond) <docId> <commentId> <content>- Reply to a commentgog docs (doc) comments resolve <docId> <commentId> [flags]- Resolve a comment (mark as done)gog docs (doc) copy (cp,duplicate) <docId> <title> [flags]- Copy a Google Docgog docs (doc) create (add,new) <title> [flags]- Create a Google Docgog docs (doc) delete --start=INT-64 --end=INT-64 <docId> [flags]- Delete text range from documentgog docs (doc) edit <docId> <find> <replace> [flags]- Find and replace text in a Google Docgog docs (doc) export (download,dl) <docId> [flags]- Export a Google Doc (pdf|docx|txt|md|html)gog docs (doc) find-replace <docId> <find> [<replace>] [flags]- Find and replace text. Supports plain text or markdown with images; use --first for a single occurrence.gog docs (doc) info (get,show) <docId>- Get Google Doc metadatagog docs (doc) insert <docId> [<content>] [flags]- Insert text at a specific positiongog docs (doc) list-tabs <docId>- List all tabs in a Google Docgog docs (doc) sed <docId> [<expression>] [flags]- Regex find/replace (sed-style: s/pattern/replacement/g)gog docs (doc) structure (struct) <docId> [flags]- Show document structure with numbered paragraphsgog docs (doc) update <docId> [flags]- Insert text at a specific index in a Google Docgog docs (doc) write <docId> [flags]- Write content to a Google Docgog download (dl) <fileId> [flags]- Download a Drive file (alias for 'drive download')gog drive (drv) <command> [flags]- Google Drivegog drive (drv) comments <command>- Manage comments on filesgog drive (drv) comments create (add,new) <fileId> <content> [flags]- Create a comment on a filegog drive (drv) comments delete (rm,del,remove) <fileId> <commentId>- Delete a commentgog drive (drv) comments get (info,show) <fileId> <commentId>- Get a comment by IDgog drive (drv) comments list (ls) <fileId> [flags]- List comments on a filegog drive (drv) comments reply (respond) <fileId> <commentId> <content>- Reply to a commentgog drive (drv) comments update (edit,set) <fileId> <commentId> <content>- Update a commentgog drive (drv) copy <fileId> <name> [flags]- Copy a filegog drive (drv) delete (rm,del) <fileId> [flags]- Move a file to trash (use --permanent to delete forever)gog drive (drv) download <fileId> [flags]- Download a file (exports Google Docs formats)gog drive (drv) drives [flags]- List shared drives (Team Drives)gog drive (drv) get <fileId>- Get file metadatagog drive (drv) ls [flags]- List files in a folder (default: root)gog drive (drv) mkdir <name> [flags]- Create a foldergog drive (drv) move <fileId> [flags]- Move a file to a different foldergog drive (drv) permissions <fileId> [flags]- List permissions on a filegog drive (drv) rename <fileId> <newName>- Rename a file or foldergog drive (drv) search <query> ... [flags]- Full-text search across Drivegog drive (drv) share <fileId> [flags]- Share a file or foldergog drive (drv) unshare <fileId> <permissionId>- Remove a permission from a filegog drive (drv) upload <localPath> [flags]- Upload a filegog drive (drv) url <fileId> ...- Print web URLs for filesgog exit-codes (exitcodes) [flags]- Print stable exit codes (alias for 'agent exit-codes')gog forms (form) <command> [flags]- Google Formsgog forms (form) add-question (add-q,aq) --title=STRING <formId> [flags]- Add a question to a formgog forms (form) create (new) --title=STRING [flags]- Create a formgog forms (form) delete-question (delete-q,dq,rm-q) <formId> <index>- Delete a question by indexgog forms (form) get (info,show) <formId>- Get a formgog forms (form) move-question (move-q,mq) <formId> <oldIndex> <newIndex>- Move a question to a new positiongog forms (form) responses <command>- Form responsesgog forms (form) responses get (info,show) <formId> <responseId>- Get a form responsegog forms (form) responses list (ls) <formId> [flags]- List form responsesgog forms (form) update (edit) <formId> [flags]- Update form title, description, or settingsgog forms (form) watch (watches) <command>- Response watches (push notifications)gog forms (form) watch (watches) create (new,add) --topic=STRING <formId> [flags]- Create a watch for new responsesgog forms (form) watch (watches) delete (rm,remove) <formId> <watchId>- Delete a watchgog forms (form) watch (watches) list (ls) <formId>- List active watchesgog forms (form) watch (watches) renew (refresh) <formId> <watchId>- Renew a watch (extends 7 days)gog gmail (mail,email) <command> [flags]- Gmailgog gmail (mail,email) archive [<messageId> ...] [flags]- Archive messages (remove from inbox)gog gmail (mail,email) attachment <messageId> <attachmentId> [flags]- Download a single attachmentgog gmail (mail,email) autoreply <query> ... [flags]- Reply once to matching messagesgog gmail (mail,email) batch <command>- Batch operations (permanent delete requires broader Gmail scope; use gmail trash for normal trashing)gog gmail (mail,email) batch delete (rm,del,remove) <messageId> ...- Permanently delete multiple messages; use 'gmail trash' to move messages to trash with the default gmail.modify scopegog gmail (mail,email) batch modify (update,edit,set) <messageId> ... [flags]- Modify labels on multiple messagesgog gmail (mail,email) drafts (draft) <command>- Draft operationsgog gmail (mail,email) drafts (draft) create (add,new) [flags]- Create a draftgog gmail (mail,email) drafts (draft) delete (rm,del,remove) <draftId>- Delete a draftgog gmail (mail,email) drafts (draft) get (info,show) <draftId> [flags]- Get draft detailsgog gmail (mail,email) drafts (draft) list (ls) [flags]- List draftsgog gmail (mail,email) drafts (draft) send (post) <draftId>- Send a draftgog gmail (mail,email) drafts (draft) update (edit,set) <draftId> [flags]- Update a draftgog gmail (mail,email) forward (fwd) --to=STRING <messageId> [flags]- Forward a message to new recipientsgog gmail (mail,email) get (info,show) <messageId> [flags]- Get a message (full|metadata|raw)gog gmail (mail,email) history [flags]- Gmail historygog gmail (mail,email) labels (label) <command>- Label operationsgog gmail (mail,email) labels (label) create (add,new) <name>- Create a new labelgog gmail (mail,email) labels (label) delete (rm,del) <labelIdOrName>- Delete a labelgog gmail (mail,email) labels (label) get (info,show) <labelIdOrName>- Get label details (including counts)gog gmail (mail,email) labels (label) list (ls)- List labelsgog gmail (mail,email) labels (label) modify (update,edit,set) <threadId> ... [flags]- Modify labels on threadsgog gmail (mail,email) labels (label) rename (mv) <labelIdOrName> <newName>- Rename a labelgog gmail (mail,email) labels (label) style (color,colour) <labelIdOrName> [flags]- Change a user label color or visibilitygog gmail (mail,email) mark-read (read-messages) [<messageId> ...] [flags]- Mark messages as readgog gmail (mail,email) messages (message,msg,msgs) <command>- Message operationsgog gmail (mail,email) messages (message,msg,msgs) modify (update,edit,set) <messageId> [flags]- Modify labels on a single messagegog gmail (mail,email) messages (message,msg,msgs) search (find,query,ls,list) <query> ... [flags]- Search messages using Gmail query syntaxgog gmail (mail,email) search (find,query,ls,list) <query> ... [flags]- Search threads using Gmail query syntaxgog gmail (mail,email) send [flags]- Send an emailgog gmail (mail,email) settings <command>- Settings and admingog gmail (mail,email) settings autoforward <command>- Auto-forwarding settingsgog gmail (mail,email) settings autoforward get (info,show)- Get current auto-forwarding settingsgog gmail (mail,email) settings autoforward update (edit,set) [flags]- Update auto-forwarding settingsgog gmail (mail,email) settings delegates <command>- Delegate operationsgog gmail (mail,email) settings delegates add (create,new) <delegateEmail>- Add a delegategog gmail (mail,email) settings delegates get (info,show) <delegateEmail>- Get a specific delegate's informationgog gmail (mail,email) settings delegates list (ls)- List all delegatesgog gmail (mail,email) settings delegates remove (delete,rm,del) <delegateEmail>- Remove a delegategog gmail (mail,email) settings filters <command>- Filter operationsgog gmail (mail,email) settings filters create (add,new) [flags]- Create a new email filtergog gmail (mail,email) settings filters delete (rm,del,remove) <filterId>- Delete a filtergog gmail (mail,email) settings filters export [flags]- Export filters as JSONgog gmail (mail,email) settings filters get (info,show) <filterId>- Get a specific filtergog gmail (mail,email) settings filters list (ls)- List all email filtersgog gmail (mail,email) settings forwarding <command>- Forwarding addressesgog gmail (mail,email) settings forwarding create (add,new) <forwardingEmail>- Create/add a forwarding addressgog gmail (mail,email) settings forwarding delete (rm,del,remove) <forwardingEmail>- Delete a forwarding addressgog gmail (mail,email) settings forwarding get (info,show) <forwardingEmail>- Get a specific forwarding addressgog gmail (mail,email) settings forwarding list (ls)- List all forwarding addressesgog gmail (mail,email) settings sendas <command>- Send-as settingsgog gmail (mail,email) settings sendas create (add,new) <email> [flags]- Create a new send-as aliasgog gmail (mail,email) settings sendas delete (rm,del,remove) <email>- Delete a send-as aliasgog gmail (mail,email) settings sendas get (info,show) <email>- Get details of a send-as aliasgog gmail (mail,email) settings sendas list (ls)- List send-as aliasesgog gmail (mail,email) settings sendas update (edit,set) <email> [flags]- Update a send-as aliasgog gmail (mail,email) settings sendas verify (resend) <email>- Resend verification email for a send-as aliasgog gmail (mail,email) settings vacation <command>- Vacation respondergog gmail (mail,email) settings vacation get (info,show)- Get current vacation responder settingsgog gmail (mail,email) settings vacation update (edit,set) [flags]- Update vacation responder settingsgog gmail (mail,email) settings watch <command>- Manage Gmail watchgog gmail (mail,email) settings watch renew (update) [flags]- Renew Gmail watch using stored configgog gmail (mail,email) settings watch serve [flags]- Run Pub/Sub push handlergog gmail (mail,email) settings watch start (begin) [flags]- Start Gmail watch for Pub/Subgog gmail (mail,email) settings watch status (ls) [flags]- Show stored watch stategog gmail (mail,email) settings watch stop (rm,delete)- Stop Gmail watch and clear stored stategog gmail (mail,email) thread (threads,read) <command>- Thread operations (get, modify)gog gmail (mail,email) thread (threads,read) attachments (files) <threadId> [flags]- List all attachments in a threadgog gmail (mail,email) thread (threads,read) get (info,show) <threadId> [flags]- Get a thread with all messages (optionally download attachments)gog gmail (mail,email) thread (threads,read) modify (update,edit,set) <threadId> [flags]- Modify labels on all messages in a threadgog gmail (mail,email) track <command>- Email open trackinggog gmail (mail,email) track key <command>- Manage tracking encryption keysgog gmail (mail,email) track key rotate [flags]- Rotate tracking encryption keygog gmail (mail,email) track opens [<tracking-id>] [flags]- Query email opensgog gmail (mail,email) track setup [flags]- Set up email tracking (deploy Cloudflare Worker)gog gmail (mail,email) track status- Show tracking configuration statusgog gmail (mail,email) trash [<messageId> ...] [flags]- Move messages to trashgog gmail (mail,email) unread (mark-unread) [<messageId> ...] [flags]- Mark messages as unreadgog gmail (mail,email) url <threadId> ...- Print Gmail web URLs for threadsgog groups (group) <command> [flags]- Google Groupsgog groups (group) list (ls) [flags]- List groups you belong togog groups (group) members <groupEmail> [flags]- List members of a groupgog keep <command> [flags]- Google Keep (Workspace only)gog keep attachment <attachmentName> [flags]- Download an attachmentgog keep create [flags]- Create a new notegog keep delete <noteId> [flags]- Delete a notegog keep get <noteId> [flags]- Get a notegog keep list [flags]- List notesgog keep search <query> [flags]- Search notes by text (client-side)gog login <email> [flags]- Authorize and store a refresh token (alias for 'auth add')gog logout <email> [flags]- Remove a stored refresh token (alias for 'auth remove')gog ls (list) [flags]- List Drive files (alias for 'drive ls')gog me [flags]- Show your profile (alias for 'people me')gog open (browse) <target> [flags]- Print a best-effort web URL for a Google URL/ID (offline)gog people (person) <command> [flags]- Google Peoplegog people (person) get (info,show) <userId>- Get a user profile by IDgog people (person) me- Show your profile (people/me)gog people (person) relations [<userId>] [flags]- Get user relationsgog people (person) search (find,query) <query> ... [flags]- Search the Workspace directorygog schema (help-json,helpjson) [<command> ...] [flags]- Machine-readable command/flag schemagog search (find) <query> ... [flags]- Search Drive files (alias for 'drive search')gog send [flags]- Send an email (alias for 'gmail send')gog sheets (sheet) <command> [flags]- Google Sheetsgog sheets (sheet) add-tab (add-sheet) <spreadsheetId> <tabName> [flags]- Add a new tab/sheet to a spreadsheetgog sheets (sheet) append (add) <spreadsheetId> <range> [<values> ...] [flags]- Append values to a rangegog sheets (sheet) chart (charts) <command>- Manage spreadsheet chartsgog sheets (sheet) chart (charts) create (add,new) --spec-json=STRING <spreadsheetId> [flags]- Create a chart from a JSON specgog sheets (sheet) chart (charts) delete (rm,remove,del) <spreadsheetId> <chartId>- Delete a chartgog sheets (sheet) chart (charts) get (show,info) <spreadsheetId> <chartId>- Get full chart definition (spec + position)gog sheets (sheet) chart (charts) list <spreadsheetId>- List charts in a spreadsheetgog sheets (sheet) chart (charts) update (edit,set) --spec-json=STRING <spreadsheetId> <chartId>- Update a chart specgog sheets (sheet) clear <spreadsheetId> <range>- Clear values in a rangegog sheets (sheet) copy (cp,duplicate) <spreadsheetId> <title> [flags]- Copy a Google Sheetgog sheets (sheet) create (new) <title> [flags]- Create a new spreadsheetgog sheets (sheet) delete-tab (delete-sheet) <spreadsheetId> <tabName>- Delete a tab/sheet from a spreadsheet (use --force to skip confirmation)gog sheets (sheet) export (download,dl) <spreadsheetId> [flags]- Export a Google Sheet (pdf|xlsx|csv) via Drivegog sheets (sheet) find-replace <spreadsheetId> <find> <replace> [flags]- Find and replace text across a spreadsheetgog sheets (sheet) format <spreadsheetId> <range> [flags]- Apply cell formatting to a rangegog sheets (sheet) freeze <spreadsheetId> [flags]- Freeze rows and columns on a sheetgog sheets (sheet) get (read,show) <spreadsheetId> <range> [flags]- Get values from a rangegog sheets (sheet) insert <spreadsheetId> <sheet> <dimension> <start> [flags]- Insert empty rows or columns into a sheetgog sheets (sheet) links (hyperlinks) <spreadsheetId> <range>- Get cell hyperlinks from a rangegog sheets (sheet) merge <spreadsheetId> <range> [flags]- Merge cells in a rangegog sheets (sheet) metadata (info) <spreadsheetId>- Get spreadsheet metadatagog sheets (sheet) named-ranges (namedranges,nr) <command>- Manage named rangesgog sheets (sheet) named-ranges (namedranges,nr) add (create,new) <spreadsheetId> <name> <range>- Add a named rangegog sheets (sheet) named-ranges (namedranges,nr) delete (rm,remove,del) <spreadsheetId> <nameOrId>- Delete a named rangegog sheets (sheet) named-ranges (namedranges,nr) get (show,info) <spreadsheetId> <nameOrId>- Get a named rangegog sheets (sheet) named-ranges (namedranges,nr) list <spreadsheetId>- List named rangesgog sheets (sheet) named-ranges (namedranges,nr) update (edit,set) <spreadsheetId> <nameOrId> [flags]- Update a named rangegog sheets (sheet) notes <spreadsheetId> <range>- Get cell notes from a rangegog sheets (sheet) number-format <spreadsheetId> <range> [flags]- Apply number format to a rangegog sheets (sheet) read-format (get-format,format-read) <spreadsheetId> <range> [flags]- Read cell formatting from a rangegog sheets (sheet) rename-tab (rename-sheet) <spreadsheetId> <oldName> <newName>- Rename a tab/sheet in a spreadsheetgog sheets (sheet) resize-columns <spreadsheetId> <columns> [flags]- Resize sheet columnsgog sheets (sheet) resize-rows <spreadsheetId> <rows> [flags]- Resize sheet rowsgog sheets (sheet) unmerge <spreadsheetId> <range>- Unmerge cells in a rangegog sheets (sheet) update (edit,set) <spreadsheetId> <range> [<values> ...] [flags]- Update values in a rangegog sheets (sheet) update-note (set-note) <spreadsheetId> <range> [flags]- Set or clear a cell notegog slides (slide) <command> [flags]- Google Slidesgog slides (slide) add-slide <presentationId> <image> [flags]- Add a slide with a full-bleed image and optional speaker notesgog slides (slide) copy (cp,duplicate) <presentationId> <title> [flags]- Copy a Google Slides presentationgog slides (slide) create (add,new) <title> [flags]- Create a Google Slides presentationgog slides (slide) create-from-markdown <title> [flags]- Create a Google Slides presentation from markdowngog slides (slide) create-from-template <templateId> <title> [flags]- Create a presentation from template with text replacementsgog slides (slide) delete-slide <presentationId> <slideId>- Delete a slide by object IDgog slides (slide) export (download,dl) <presentationId> [flags]- Export a Google Slides deck (pdf|pptx)gog slides (slide) info (get,show) <presentationId>- Get Google Slides presentation metadatagog slides (slide) insert-text <presentationId> <objectId> <text> [flags]- Insert text into an existing page element (shape or table) by objectIdgog slides (slide) list-slides <presentationId>- List all slides with their object IDsgog slides (slide) read-slide <presentationId> <slideId>- Read slide content: speaker notes, text elements, and imagesgog slides (slide) replace-slide <presentationId> <slideId> <image> [flags]- Replace the image on an existing slide in-placegog slides (slide) replace-text <presentationId> <find> <replacement> [flags]- Find-and-replace text across a presentationgog slides (slide) thumbnail (thumb) <presentationId> <slideId> [flags]- Get or download a rendered thumbnail for a slidegog slides (slide) update-notes <presentationId> <slideId> [flags]- Update speaker notes on an existing slidegog status (st) [flags]- Show auth/config status (alias for 'auth status')gog tasks (task) <command> [flags]- Google Tasksgog tasks (task) add (create) <tasklistId> [flags]- Add a taskgog tasks (task) clear <tasklistId>- Clear completed tasksgog tasks (task) delete (rm,del,remove) <tasklistId> <taskId>- Delete a taskgog tasks (task) done (complete) <tasklistId> <taskId>- Mark task completedgog tasks (task) get (info,show) <tasklistId> <taskId>- Get a taskgog tasks (task) list (ls) <tasklistId> [flags]- List tasksgog tasks (task) lists <command>- List task listsgog tasks (task) lists create (add,new) <title> ...- Create a task listgog tasks (task) lists list [flags]- List task listsgog tasks (task) undo (uncomplete,undone) <tasklistId> <taskId>- Mark task needs actiongog tasks (task) update (edit,set) <tasklistId> <taskId> [flags]- Update a taskgog time <command> [flags]- Local time utilitiesgog time now [flags]- Show current timegog upload (up,put) <localPath> [flags]- Upload a file to Drive (alias for 'drive upload')gog version [flags]- Print versiongog whoami (who-am-i) [flags]- Show your profile (alias for 'people me')