gog gmail autoreply
Generated from
gog schema --json. Do not edit this page by hand; runmake docs-commands.
Reply once to matching messages
#Usage
gog gmail (mail,email) autoreply <query> ... [flags]
#Parent
#Flags
| Flag | Type | Default | Help |
|---|---|---|---|
--access-token | string | Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) | |
-a--account--acct | string | Account email for API commands (gmail/calendar/chat/classroom/drive/docs/slides/contacts/tasks/people/sheets/forms/appscript/ads) | |
--allow-self | bool | Allow replying to messages sent by your own account/alias | |
--archive | bool | Archive threads after auto-replying | |
--body | string | Reply body (plain text; required unless --body-html is set) | |
--body-file | string | Reply body file path (plain text; '-' for stdin) | |
--body-html | string | Reply body HTML | |
--client | string | OAuth client name (selects stored credentials + token bucket) | |
--color | string | auto | Color output: auto|always|never |
--disable-commands | string | Comma-separated list of disabled commands; dot paths allowed | |
-n--dry-run--dryrun--noop--preview | bool | Do not make changes; print intended actions and exit successfully | |
--enable-commands | string | Comma-separated list of enabled commands; dot paths allowed (restricts CLI) | |
-y--force--assume-yes--yes | bool | Skip confirmations for destructive commands | |
--from | string | Send from this email address (must be a verified send-as alias) | |
--gmail-no-send | bool | false | Block Gmail send operations (agent safety) |
-h--help | kong.helpFlag | Show context-sensitive help. | |
-j--json--machine | bool | false | Output JSON to stdout (best for scripting) |
--label | string | AutoReplied | Label to add after replying (used for dedupe) |
--mark-read | bool | Mark threads as read after auto-replying | |
--max--limit | int64 | 20 | Max matching messages to inspect |
--no-input--non-interactive--noninteractive | bool | Never prompt; fail instead (useful for CI) | |
-p--plain--tsv | bool | false | Output stable, parseable text to stdout (TSV; no colors) |
--reply-to | string | Reply-To header address | |
--results-only | bool | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) | |
--select--pick--project | string | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. | |
--skip-bulk | bool | true | Skip auto-generated/list mail |
--subject | string | Override reply subject (default: reply to original subject) | |
-v--verbose | bool | Enable verbose logging | |
--version | kong.VersionFlag | Print version and exit |