#Creating Local R2 bindings
5 messages · Page 1 of 1 (latest)
Pick your package manager.
NPM: sh npx wrangler r2 bucket create somebucket PNPM: sh pnpm wrangler r2 bucket create somebucket Yarn: ```sh
yarn wrangler r2 bucket create somebucket
Let me be more specific: I am trying to initialize an R2 bucket that is only supposed to exist locally, in a dev environment. How do I create a preview bucket, one that I would need to reference via preview_bucket_name
As far as I can tell ^^^ deploys actual R2 buckets
Oh, if you have a binding to an R2 bucket in your wrangler.toml, then it will be created automatically for local dev