Skip to content

Commit af8e36d

Browse files
committed
Added docs for wrangler r2 dev-url commands get, enable, disable
1 parent 844332a commit af8e36d

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,49 @@ List R2 bucket in the current account.
924924
wrangler r2 bucket list
925925
```
926926

927+
### `dev-url enable`
928+
929+
Enable public access via the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) for an R2 bucket.
930+
931+
```txt
932+
wrangler r2 bucket dev-url enable <NAME> [OPTIONS]
933+
```
934+
935+
- `NAME` <Type text="string" /> <MetaInfo text="required" />
936+
- The name of the R2 bucket to enable public access via its r2.dev URL.
937+
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
938+
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
939+
- `--force` <Type text="boolean" /> <MetaInfo text="optional" />
940+
- Skip confirmation when enabling public access via r2.dev URL.
941+
942+
### `dev-url disable`
943+
944+
Disable public access via the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) for an R2 bucket.
945+
946+
```txt
947+
wrangler r2 bucket dev-url disable <NAME> [OPTIONS]
948+
```
949+
950+
- `NAME` <Type text="string" /> <MetaInfo text="required" />
951+
- The name of the R2 bucket to disable public access via its r2.dev URL.
952+
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
953+
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
954+
- `--force` <Type text="boolean" /> <MetaInfo text="optional" />
955+
- Skip confirmation when disabling public access via r2.dev URL.
956+
957+
### `dev-url get`
958+
959+
Get the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) and status for an R2 bucket.
960+
961+
```txt
962+
wrangler r2 bucket dev-url get <NAME> [OPTIONS]
963+
```
964+
965+
- `NAME` <Type text="string" /> <MetaInfo text="required" />
966+
- The name of the R2 bucket whose r2.dev URL status to retrieve.
967+
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
968+
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
969+
927970
### `notification create`
928971

929972
Create an [event notification](/r2/buckets/event-notifications/) rule for an R2 bucket.

0 commit comments

Comments
 (0)