Skip to content

MaxLeiter/vcup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vcup

Simple file sharing via Vercel Blob. Upload files from the CLI, get back a link that renders inline in browsers.

Deploy your own

Deploy with Vercel

After deploying:

  1. In Vercel dashboard, go to your project's Storage tab and note the BLOB_READ_WRITE_TOKEN and store URL
  2. Set VCUP_TOKEN to any random secret string in your project's environment variables
  3. Set BLOB_STORE_URL to the store's public URL (e.g. https://abc123.public.blob.vercel-storage.com)

Custom domain (optional)

To serve files from your own domain (e.g. files.yourdomain.com):

  1. Run vercel domains add files.yourdomain.com
  2. Add a CNAME record pointing files to cname.vercel-dns.com
  3. Update ~/.vcuprc to use your custom domain as the url

Install the CLI

# With bun
bun install -g @maxleiter/vcup

# Or with npm
npm install -g @maxleiter/vcup

Configure

Create ~/.vcuprc:

{
  "url": "https://your-vcup-deployment.vercel.app",
  "token": "your-vcup-token"
}

Or set environment variables: VCUP_API_URL and VCUP_TOKEN.

Usage

# 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>

About

dead-simple tool to upload files to Vercel Blob

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors