Make an R2 bucket public via Wrangler / API?

Seems to me the only want to make an R2 bucket public is through GUI dashboard?

Hopefully we can do so via either Wrangler or Cloudflare API or S3 api…

As per Wrangler documentation:

wrangler r2 bucket create <NAME>

By default, it’s not public. You’ll need to go to the GUI dashboard to click & make it public.