googleworkspace avatar

Recipe Create Vacation Responder

A straightforward three-step recipe for setting up Gmail's vacation responder through the command line. You get the essential commands to enable auto-reply with a custom message, verify your settings are correct, and disable it when you return. The workflow handles the common scenario where you need to quickly set an out-of-office message without clicking through Gmail's web interface. It's bare-bones but covers what most people actually need: turning it on, checking it worked, and turning it off. The commands are ready to customize with your own message text and contact details.

skills.sh installs
30.7K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-create-vacation-responder --agent claude-code

Installs into .claude/skills of the current project.

Files

Set Up a Gmail Vacation Responder

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail

Enable a Gmail out-of-office auto-reply with a custom message and date range.

Steps

  1. Enable vacation responder: gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": true, "responseSubject": "Out of Office", "responseBodyPlainText": "I am out of the office until Jan 20. For urgent matters, contact backup@company.com.", "restrictToContacts": false, "restrictToDomain": false}'
  2. Verify settings: gws gmail users settings getVacation --params '{"userId": "me"}'
  3. Disable when back: gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1googleworkspace avatarrecipe-share-folder-with-teamgoogleworkspace/cliShare a Google Drive folder and all its contents with a list of collaborators.30.7Kskills.sh installs
2googleworkspace avatarpersona-customer-supportgoogleworkspace/cliManage customer support — track tickets, respond, escalate issues.30.7Kskills.sh installs
3googleworkspace avatarrecipe-forward-labeled-emailsgoogleworkspace/cliFind Gmail messages with a specific label and forward them to another address.30.7Kskills.sh installs
4googleworkspace avatarpersona-event-coordinatorgoogleworkspace/cliPlan and manage events — scheduling, invitations, and logistics.30.6Kskills.sh installs
5googleworkspace avatargws-modelarmorgoogleworkspace/cliGoogle Model Armor: Filter user-generated content for safety.30.6Kskills.sh installs
6googleworkspace avatarpersona-sales-opsgoogleworkspace/cliManage sales workflows — track deals, schedule calls, client comms.30.6Kskills.sh installs