# Recipe Watch Drive Changes

Subscribe to change notifications on a Google Drive file or folder.

- Repository: https://github.com/googleworkspace/cli (32044 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -g -a claude-code -y`
Codex: `npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -g -a codex -y`
Cursor: `npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -g -a cursor -y`
Gemini CLI: `npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -g -a gemini-cli -y`

## Description

Subscribe to change notifications on a Google Drive file or folder.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

1. 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}}'`
2. List active subscriptions: `gws events subscriptions list`
3. Renew before expiry: `gws events +renew --subscription SUBSCRIPTION_ID`


