---
id: ssh2-gws-events-renew
name: "gws-events-renew"
url: https://skills.yangsir.net/skill/ssh2-gws-events-renew
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-calendar-api", "event-renewal", "recurring-events", "google-workspace", "event-management"]
install_count: 30700
rating: 4.60 (148 reviews)
github: https://github.com/googleworkspace/cli
---

# gws-events-renew

> 续订或重新激活Google Workspace事件订阅，确保持续接收工作区相关通知。

**Stats**: 30,700 installs · 4.6/5 (148 reviews)

## Before / After 对比

### 自动化续订工作区事件，确保服务不中断。

## Readme

# 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

```bash
gws events +renew
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--name` | — | — | Subscription name to reactivate (e.g., subscriptions/SUB_ID) |
| `--all` | — | — | Renew all subscriptions expiring within --within window |
| `--within` | — | 1h | Time window for --all (e.g., 1h, 30m, 2d) |

## Examples

```bash
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](../gws-shared/SKILL.md) — Global flags and auth
- [gws-events](../gws-events/SKILL.md) — All subscribe to google workspace events commands


---
*Source: https://skills.yangsir.net/skill/ssh2-gws-events-renew*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-gws-events-renew/markdown*