
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.
$ npx -y skills add googleworkspace/cli --skill recipe-create-vacation-responder --agent claude-codeInstalls into .claude/skills of the current project.
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.
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}'gws gmail users settings getVacation --params '{"userId": "me"}'gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'Sponsors