72
This project provides a command-line tool that simplifies the process of uploading files to Cloudflare R2 storage. It generates a shareable link for the uploaded file, which can be either a permanent URL if a public base URL is configured for the R2 bucket, or a temporary presigned URL for private buckets. This tool is designed for developers and users who need an efficient way to manage and share files stored in Cloudflare R2.
File Upload: Easily upload files to Cloudflare R2 buckets.
Link Generation: Automatically generates shareable links for uploaded files.
Public/Private Support: Supports both public buckets with custom domains and private buckets requiring presigned URLs.
Customizable Links: Option to specify a custom key for the uploaded file, allowing for overwriting existing objects.
The command-line interface is straightforward. Simply run cflink followed by the file name. Options are available to explicitly set the link mode (public or presigned) and expiration times for presigned links.
Built with