From 130095840876466f20555e1ae3c551249028627f Mon Sep 17 00:00:00 2001 From: Phillip Jones Date: Sat, 16 Nov 2024 07:29:03 -0800 Subject: [PATCH] Added docs for wrangler r2 dev-url commands get, enable, disable (#17941) --- .../docs/workers/wrangler/commands.mdx | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/src/content/docs/workers/wrangler/commands.mdx b/src/content/docs/workers/wrangler/commands.mdx index f04775f8ae7d9b2..496808c892de596 100644 --- a/src/content/docs/workers/wrangler/commands.mdx +++ b/src/content/docs/workers/wrangler/commands.mdx @@ -945,6 +945,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). + ### `domain add` Connect a [custom domain](/r2/buckets/public-buckets/#custom-domains) to an R2 bucket.