npx wrangler r2 object get my-assets/logo.png --file ./logo.png
Download an object from R2 to a file
Fetches the object at my-assets/logo.png and writes it to ./logo.png on disk. Without --file, output goes to stdout, which suits text but not binaries. Object paths always start with the bucket name. This is the CLI counterpart to `wrangler r2 object put`.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.