Simple file sharing via Vercel Blob. Upload files from the CLI, get back a link that renders inline in browsers.
After deploying:
- In Vercel dashboard, go to your project's Storage tab and note the
BLOB_READ_WRITE_TOKENand store URL - Set
VCUP_TOKENto any random secret string in your project's environment variables - Set
BLOB_STORE_URLto the store's public URL (e.g.https://abc123.public.blob.vercel-storage.com)
To serve files from your own domain (e.g. files.yourdomain.com):
- Run
vercel domains add files.yourdomain.com - Add a CNAME record pointing
filestocname.vercel-dns.com - Update
~/.vcuprcto use your custom domain as theurl
# With bun
bun install -g @maxleiter/vcup
# Or with npm
npm install -g @maxleiter/vcupCreate ~/.vcuprc:
{
"url": "https://your-vcup-deployment.vercel.app",
"token": "your-vcup-token"
}Or set environment variables: VCUP_API_URL and VCUP_TOKEN.
# Upload a file
vcup screenshot.png
# Pipe from stdin
echo "hello world" | vcup
cat logs.txt | vcup
# Get raw blob URL instead of proxy URL
vcup --raw image.png
# Delete a file
vcup rm <url>