Skip to content

Wrangler command

This component reads from a JSON file that is created by parsing the --help output of Wrangler commands.

r2 bucket create

Create a new R2 bucket

wrangler r2 bucket create <name>

Positionals

  • name [string] [required]

    The name of the new bucket

Options

  • -J, --jurisdiction [string]

    The jurisdiction where the new bucket will be created

  • -s, --storage-class [string]

    The default storage class for objects uploaded to this bucket

import { WranglerCommand } from "~/components";
<WranglerCommand cmd="r2 bucket create" />