Skip to content

Commit aab691e

Browse files
jonesphillipharshil1712
authored andcommitted
Added docs for wrangler r2 dev-url commands get, enable, disable (#17941)
1 parent 0a8d8fa commit aab691e

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
@@ -945,6 +945,49 @@ List R2 bucket in the current account.
945945
wrangler r2 bucket list
946946
```
947947

948+
### `dev-url enable`
949+
950+
Enable public access via the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) for an R2 bucket.
951+
952+
```txt
953+
wrangler r2 bucket dev-url enable <NAME> [OPTIONS]
954+
```
955+
956+
- `NAME` <Type text="string" /> <MetaInfo text="required" />
957+
- The name of the R2 bucket to enable public access via its r2.dev URL.
958+
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
959+
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
960+
- `--force` <Type text="boolean" /> <MetaInfo text="optional" />
961+
- Skip confirmation when enabling public access via r2.dev URL.
962+
963+
### `dev-url disable`
964+
965+
Disable public access via the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) for an R2 bucket.
966+
967+
```txt
968+
wrangler r2 bucket dev-url disable <NAME> [OPTIONS]
969+
```
970+
971+
- `NAME` <Type text="string" /> <MetaInfo text="required" />
972+
- The name of the R2 bucket to disable public access via its r2.dev URL.
973+
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
974+
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
975+
- `--force` <Type text="boolean" /> <MetaInfo text="optional" />
976+
- Skip confirmation when disabling public access via r2.dev URL.
977+
978+
### `dev-url get`
979+
980+
Get the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) and status for an R2 bucket.
981+
982+
```txt
983+
wrangler r2 bucket dev-url get <NAME> [OPTIONS]
984+
```
985+
986+
- `NAME` <Type text="string" /> <MetaInfo text="required" />
987+
- The name of the R2 bucket whose r2.dev URL status to retrieve.
988+
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
989+
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
990+
948991
### `domain add`
949992

950993
Connect a [custom domain](/r2/buckets/public-buckets/#custom-domains) to an R2 bucket.

0 commit comments

Comments
 (0)