
Recipe Watch Drive Changes
Sets up Google Drive change notifications using Google Workspace Events API to monitor file and folder updates in real time. You'll use this when building apps that need to react immediately to Drive changes instead of polling constantly. Creates event subscriptions with Pub/Sub endpoints, lists active subscriptions, and handles renewal before expiry. The honest take: it's essential plumbing for any serious Drive integration, but you'll need to handle the Pub/Sub message processing separately. Saves you from writing boilerplate subscription management code and gives you the three core operations you actually need.
- skills.sh installs
- 31K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill recipe-watch-drive-changes --agent claude-codeInstalls into .claude/skills of the current project.
Files
Watch for Drive Changes
PREREQUISITE: Load the following skills to execute this recipe:
gws-events
Subscribe to change notifications on a Google Drive file or folder.
Steps
- Create subscription:
gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}' - List active subscriptions:
gws events subscriptions list - Renew before expiry:
gws events +renew --subscription SUBSCRIPTION_ID
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Category
- CLI & Terminal
More from googleworkspace/cli
All 113- Recipe Create Shared Drive31K
- Persona Team Lead31K
- Recipe Share Doc And Notify30.9K
- Recipe Find Large Files30.9K
- Recipe Create Task List30.9K
- Recipe Schedule Recurring Event30.9K
- Recipe Review Overdue Tasks30.8K
- Recipe Copy Sheet For New Month30.8K
- Recipe Review Meet Participants30.8K
- Recipe Batch Invite To Event30.8K
- Recipe Collect Form Responses30.8K
- Recipe Create Events From Sheet30.7K
- Persona It Admin30.7K
- Recipe Create Vacation Responder30.7K
- Recipe Share Folder With Team30.7K
- Persona Customer Support30.7K
- Recipe Forward Labeled Emails30.7K
- Persona Event Coordinator30.6K
- Gws Modelarmor30.6K
- Persona Sales Ops30.6K
- Recipe Create Meet Space30.6K
- Recipe Create Expense Tracker30.6K
- Recipe Create Feedback Form30.5K
- Recipe Post Mortem Setup30.5K