diff --git a/src/content/docs/workers/wrangler/commands.mdx b/src/content/docs/workers/wrangler/commands.mdx index f491c1fc6509a3..f0096c72150491 100644 --- a/src/content/docs/workers/wrangler/commands.mdx +++ b/src/content/docs/workers/wrangler/commands.mdx @@ -924,6 +924,49 @@ List R2 bucket in the current account. wrangler r2 bucket list ``` +### `dev-url enable` + +Enable public access via the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) for an R2 bucket. + +```txt +wrangler r2 bucket dev-url enable [OPTIONS] +``` + +- `NAME` + - The name of the R2 bucket to enable public access via its r2.dev URL. +- `--jurisdiction` + - The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions). +- `--force` + - Skip confirmation when enabling public access via r2.dev URL. + +### `dev-url disable` + +Disable public access via the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) for an R2 bucket. + +```txt +wrangler r2 bucket dev-url disable [OPTIONS] +``` + +- `NAME` + - The name of the R2 bucket to disable public access via its r2.dev URL. +- `--jurisdiction` + - The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions). +- `--force` + - Skip confirmation when disabling public access via r2.dev URL. + +### `dev-url get` + +Get the [r2.dev URL](/r2/buckets/public-buckets/#enable-managed-public-access) and status for an R2 bucket. + +```txt +wrangler r2 bucket dev-url get [OPTIONS] +``` + +- `NAME` + - The name of the R2 bucket whose r2.dev URL status to retrieve. +- `--jurisdiction` + - The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions). + ### `notification create` Create an [event notification](/r2/buckets/event-notifications/) rule for an R2 bucket.