Wrangler commands (9)·续1

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket dev-url disable

Disable public access via the r2.dev URL for an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket dev-url disable <BUCKET>
yarn wrangler r2 bucket dev-url disable <BUCKET>
pnpm wrangler r2 bucket dev-url disable <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket to disable public access via its r2.dev URL - --jurisdiction string alias: --J

The jurisdiction where the bucket exists - --force boolean alias: --ydefault: false

Skip confirmation

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket dev-url get

Get the r2.dev URL and status for an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket dev-url get <BUCKET>
yarn wrangler r2 bucket dev-url get <BUCKET>
pnpm wrangler r2 bucket dev-url get <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket whose r2.dev URL status to retrieve - --jurisdiction string alias: --J

The jurisdiction where the bucket exists

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket domain add

Connect a custom domain to an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket domain add <BUCKET>
yarn wrangler r2 bucket domain add <BUCKET>
pnpm wrangler r2 bucket domain add <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket to connect a custom domain to - --domain string required

The custom domain to connect to the R2 bucket - --zone-id string required

The zone ID associated with the custom domain - --min-tls string Set the minimum TLS version for the custom domain (defaults to 1.0 if not set) - --jurisdiction string alias: --J

The jurisdiction where the bucket exists - --force boolean alias: --ydefault: false

Skip confirmation

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket domain remove

Remove a custom domain from an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket domain remove <BUCKET>
yarn wrangler r2 bucket domain remove <BUCKET>
pnpm wrangler r2 bucket domain remove <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket to remove the custom domain from - --domain string required

The custom domain to remove from the R2 bucket - --jurisdiction string alias: --J

The jurisdiction where the bucket exists - --force boolean alias: --ydefault: false

Skip confirmation

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket domain update

Update settings for a custom domain connected to an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket domain update <BUCKET>
yarn wrangler r2 bucket domain update <BUCKET>
pnpm wrangler r2 bucket domain update <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket associated with the custom domain to update - --domain string required

The custom domain whose settings will be updated - --min-tls string Update the minimum TLS version for the custom domain - --jurisdiction string alias: --J

The jurisdiction where the bucket exists

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket domain get

Get custom domain connected to an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket domain get <BUCKET>
yarn wrangler r2 bucket domain get <BUCKET>
pnpm wrangler r2 bucket domain get <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket whose custom domain to retrieve - --domain string required

The custom domain to get information for - --jurisdiction string alias: --J

The jurisdiction where the bucket exists

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket domain list

List custom domains for an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket domain list <BUCKET>
yarn wrangler r2 bucket domain list <BUCKET>
pnpm wrangler r2 bucket domain list <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket whose connected custom domains will be listed - --jurisdiction string alias: --J

The jurisdiction where the bucket exists

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket lifecycle add

Add a lifecycle rule to an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket lifecycle add <BUCKET> [NAME] [PREFIX]
yarn wrangler r2 bucket lifecycle add <BUCKET> [NAME] [PREFIX]
pnpm wrangler r2 bucket lifecycle add <BUCKET> [NAME] [PREFIX]
  • <BUCKET> string required

The name of the R2 bucket to add a lifecycle rule to - [NAME] string alias: --id

A unique name for the lifecycle rule, used to identify and manage it. - [PREFIX] string Prefix condition for the lifecycle rule (leave empty for all prefixes) - --expire-days number Number of days after which objects expire - --expire-date string Date after which objects expire (YYYY-MM-DD) - --ia-transition-days number Number of days after which objects transition to Infrequent Access storage - --ia-transition-date string Date after which objects transition to Infrequent Access storage (YYYY-MM-DD) - --abort-multipart-days number Number of days after which incomplete multipart uploads are aborted - --jurisdiction string alias: --J

The jurisdiction where the bucket exists - --force boolean alias: --ydefault: false

Skip confirmation and Basin Catalog validation prompt

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

r2 bucket lifecycle remove

Remove a lifecycle rule from an R2 bucket

npmyarnpnpm

npx wrangler r2 bucket lifecycle remove <BUCKET>
yarn wrangler r2 bucket lifecycle remove <BUCKET>
pnpm wrangler r2 bucket lifecycle remove <BUCKET>
  • <BUCKET> string required

The name of the R2 bucket to remove a lifecycle rule from - --name string alias: --idrequired

The unique name of the lifecycle rule to remove - --jurisdiction string alias: --J

The jurisdiction where the bucket exists

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false