googleworkspace avatar

Gws Events Renew

Keeps your Google Workspace event subscriptions from dying by renewing them before they expire. You can either target a specific subscription by name or bulk renew everything expiring within a time window (default 1 hour, configurable to days). The --all flag with --within makes this perfect for cron jobs since Workspace subscriptions have annoying expiration timers that kill your event streams if you forget about them. Simple but essential if you're building anything that depends on real-time Workspace events and can't afford downtime from expired subscriptions.

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

Install

$ npx -y skills add googleworkspace/cli --skill gws-events-renew --agent claude-code

Installs into .claude/skills of the current project.

Files

events +renew

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Renew/reactivate Workspace Events subscriptions

Usage

gws events +renew

Flags

FlagRequiredDefaultDescription
--name——Subscription name to reactivate (e.g., subscriptions/SUB_ID)
--all——Renew all subscriptions expiring within --within window
--within—1hTime window for --all (e.g., 1h, 30m, 2d)

Examples

gws events +renew --name subscriptions/SUB_ID
gws events +renew --all --within 2d

Tips

  • Subscriptions expire if not renewed periodically.
  • Use --all with a cron job to keep subscriptions alive.

See Also

  • gws-shared — Global flags and auth
  • gws-events — All subscribe to google workspace events commands

Sponsors

Details

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

More from googleworkspace/cli

All 113
1googleworkspace avatarrecipe-plan-weekly-schedulegoogleworkspace/cliReview your Google Calendar week, identify gaps, and add events to fill them.31.4Kskills.sh installs
2googleworkspace avatarrecipe-bulk-download-foldergoogleworkspace/cliList and download all files from a Google Drive folder.31.4Kskills.sh installs
3googleworkspace avatarrecipe-sync-contacts-to-sheetgoogleworkspace/cliExport Google Contacts directory to a Google Sheets spreadsheet.31.3Kskills.sh installs
4googleworkspace avatargws-admin-reportsgoogleworkspace/cliGoogle Workspace Admin SDK: Audit logs and usage reports.31.3Kskills.sh installs
5googleworkspace avatarrecipe-generate-report-from-sheetgoogleworkspace/cliRead data from a Google Sheet and create a formatted Google Docs report.31.2Kskills.sh installs
6googleworkspace avatarrecipe-reschedule-meetinggoogleworkspace/cliMove a Google Calendar event to a new time and automatically notify all attendees.31.1Kskills.sh installs