• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
wolf

wolf

FileDumpThing

Share files with a paste!
Public
Like
11
FileDumpThing
Home
Code
7
backend
1
cli
2
frontend
3
shared
2
.vtignore
README.md
deno.json
Branches
1
Pull requests
Remixes
8
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
cli
/
README.md
Code
/
cli
/
README.md
Search
4/20/2025
Viewing readonly version of main branch: v31
View latest version
README.md

File Dumper CLI

This CLI tool allows you to quickly upload files or text content to the File Dumper service directly from your terminal.

Usage

You can pipe content to the CLI tool, which will upload it and return a shareable URL:

# Upload a file cat path/to/file.jpg | deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts file.jpg # Upload text echo "Hello World" | deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts note.txt # Upload from clipboard (macOS) pbpaste | deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts clipboard.txt

Parameters

  • The optional filename argument helps determine the MIME type of the content
  • If no filename is provided, the content is treated as plain text

Installation

For easier usage, you can create an alias in your shell configuration:

# Add to your .bashrc, .zshrc, etc. alias filedump='deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts'

Then use it like:

cat image.png | filedump image.png

Examples

# Upload an image and open it in browser cat screenshot.png | deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts screenshot.png | xargs open # Upload and copy URL to clipboard (macOS) cat document.pdf | deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts document.pdf | pbcopy # Upload and copy URL to clipboard (Linux with xclip) cat document.pdf | deno run --allow-net --allow-env https://esm.town/v/wolf/FileDumpThing/cli/upload.ts document.pdf | xclip -selection clipboard

Notes

  • The URL is output to stdout without any additional text, making it easy to pipe to other commands
  • The CLI uses the same blob storage as the web interface
  • Content is stored with the same retention policy as the web interface
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.