Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/content/docs/workers/wrangler/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ wrangler delete [<SCRIPT>] [OPTIONS]
- `--dry-run` boolean (default: false) optional
- Do not actually delete the Worker. This is useful for testing the output of `wrangler delete`.

<Render file="wrangler-commands/kv" product="workers"/>
<Render file="wrangler-commands/kv" product="workers" />

---

Expand Down Expand Up @@ -1042,32 +1042,34 @@ Event notifications is currently in beta. To report bugs or request features, fi
Create an [event notification](/r2/buckets/event-notifications/) rule for an R2 bucket.

```txt
wrangler r2 bucket notification create <NAME> --event-type <EVENT_TYPE> --queue <QUEUE_NAME> [OPTIONS]]
wrangler r2 bucket notification create <NAME> [OPTIONS]
```

- `NAME` string required
- The name of the R2 bucket to create an event notification rule for.
- `EVENT_TYPE` "object-create"|"object-delete" required
- The [type of event](/r2/buckets/event-notifications/#event-types) that will trigger event notifications.
- `QUEUE_NAME` string required
- `--event-type` "object-create"|"object-delete"[] required
- The [type of event(s)](/r2/buckets/event-notifications/#event-types) that will trigger event notifications.
- `--queue` string required
- The name of the queue that will receive event notification messages.
- `--prefix` string optional
- Specifies the key name prefix that an object must match to trigger event notifications. The value must be a string. Regular expressions are not supported.
- The prefix that an object must match to emit event notifications (note: regular expressions are not supported).
- `--suffix` string optional
- Specifies the key name suffix that an object must match to trigger event notifications. The value must be a string. Regular expressions are not supported.
- The suffix that an object must match to emit event notifications (note: regular expressions are not supported).

### `notification delete`

Remove a rule from a bucket's [event notification](/r2/buckets/event-notifications/) configuration.

```txt
wrangler r2 bucket notification delete <NAME> --queue <QUEUE_NAME>
wrangler r2 bucket notification delete <NAME> [OPTIONS]
```

- `NAME` string required
- The name of the R2 bucket to delete an event notification rule for.
- `QUEUE_NAME` string required
- The name of the queue that corresponds to the event notification rule.
- `--queue` string required
- The name of the queue that corresponds to the event notification rule. If no `rule` is provided, all event notification rules associated with the queue will be deleted.
- `--rule` string optional
- The ID of the event notification rule to delete.

### `notification get`

Expand Down Expand Up @@ -1787,7 +1789,6 @@ wrangler whoami

## `versions`


:::note
The minimum required wrangler version to use these commands is 3.40.0. For versions before 3.73.0, you will need to add the `--x-versions` flag.
:::
Expand Down Expand Up @@ -1888,7 +1889,6 @@ wrangler versions secret bulk <FILENAME> [OPTIONS]

## `triggers`


:::note
The minimum required wrangler version to use these commands is 3.40.0. For versions before 3.73.0, you will need to add the `--x-versions` flag.
:::
Expand Down