Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 706 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 706 Bytes

r2ls

A simple API to return a list of keys on a Cloudflare R2 bucket.

Get started

  1. Sign up for Cloudflare Workers. The free tier is more than enough for most use cases.
  2. Clone this project and install dependencies with bun install. Alternatively, delete the bun.lockb file and use npm install if you prefer.
  3. Setup the bindings in wrangler.toml. Use the wrangler.example.toml file as a template.
  4. Run wrangler login to login to your Cloudflare account in wrangler
  5. Run wrangler deploy to publish the API to Cloudflare Workers

Development

Run wrangler remote to start the project in a way that will allow you to access the bucket remote bucket.