Upload a file from the terminal
One command, one link. No account, no install: if you have curl, you're set. Mac, Linux and Windows 10 or later all include it.
curl -F file=@photo.jpg https://sendshed.com/up
Send Shed answers with plain text you can copy or pipe:
https://sendshed.com/d/Xk3pQ9a2LmV7tR4w/photo.jpg
direct: https://sendshed.com/i/Xk3pQ9a2LmV7tR4w/photo_sendshed.com.jpg
delete: https://sendshed.com/delete/Xk3pQ9a2LmV7tR4w/…
kept until nobody has used it for 45 days
The first line is the link to share. Images also get a direct link that embeds in forums and chat. Open the delete link to remove the file whenever you like.
Options
| Add | What it does |
|---|---|
-F expiryHours=24 | Delete after 1, 24 or 168 hours. Default: kept until nobody has used it for 45 days. |
-F downloadLimit=1 | Delete after this many downloads. |
-F password=hunter2 | Ask for a password before downloading. |
-H "Accept: application/json" | Reply with JSON instead of text, for scripts. |
Handy recipes
A one-word command. Add this to ~/.bashrc or ~/.zshrc, then run sendshed report.pdf:
sendshed() { curl -sS -F "file=@$1" https://sendshed.com/up; }
Send the output of a command, such as a log:
journalctl -n 500 | curl -sS -F "file=@-;filename=log.txt" https://sendshed.com/up
Zip a folder and send it in one go:
zip -qr - project/ | curl -sS -F "file=@-;filename=project.zip" https://sendshed.com/up
Just the link, for scripts (needs jq):
curl -sS -H "Accept: application/json" -F file=@build.tar.gz https://sendshed.com/up | jq -r .url
Windows PowerShell: use curl.exe so you get the real curl rather than PowerShell's alias:
curl.exe -F file=@photo.jpg https://sendshed.com/up
Run curl https://sendshed.com/up on its own to print this help in the terminal.
Download a file from the terminal
A share link looks like https://sendshed.com/d/FILE_ID/name. The file itself is at /api/blob/FILE_ID.
Downloading from the terminal uses an API key (free: dashboard, under ShareX), which also works when the
site asks downloaders to sign in:
curl -fLJO -H "Authorization: Bearer ss_your_key_here" https://sendshed.com/api/blob/FILE_ID
-J -O saves it under its original name. Password-protected and Encrypted Share files need the browser:
their password or key never reaches the server.
Upload into your account instead
Quick Share uploads aren't tied to an account. To keep files in your dashboard, use your API key and the account
endpoint (same file field, up to your account's per-file limit):
curl -sS -H "Authorization: Bearer ss_your_key_here" -F file=@report.pdf https://sendshed.com/api/v1/upload
The reply is JSON with the link, a delete link and the file's details. The full reference, including folders and file management, is in the upload API docs. For screenshots, the ShareX guide has ready-made configs.
Time an upload
curl can report how long a transfer took and the average speed, which is handy for comparing networks:
curl -sS -H "Accept: application/json" -F file=@video.mp4 \
-w '\nupload: %{time_total}s, %{speed_upload} bytes/s\n' https://sendshed.com/up
Everyone's browser results, and the method behind them, are on the live transfer benchmark.
Coming from file.io?
Send Shed accepts file.io's upload request as-is. Change the address in your script and keep everything else:
curl -F file=@report.pdf https://sendshed.com
The reply is file.io-style JSON, so code that reads .link or .key keeps working:
{"success":true,"key":"Xk3pQ9a2LmV7tR4w","link":"https://sendshed.com/d/Xk3pQ9a2LmV7tR4w/report.pdf",
"expires":"…","maxDownloads":1,"autoDelete":true, …}
Like file.io, a file sent this way is deleted after its first download. file.io's options work as form fields or in the query string:
| Add | What it does |
|---|---|
-F expires=1d | Delete after this long: 1h, 1d, 1w (a bare number is days). Up to 7 days. |
-F maxDownloads=5 | Delete after this many downloads instead of one. |
-F autoDelete=false | Keep the file after it's downloaded (kept while people use it, or until expires). |
Downloading from the terminal works too: curl -LO or wget on a link fetches the file itself, while a browser gets the download page. Password-protected files always show the page. More in how Send Shed compares with file.io.
Limits and what happens to your file
- Up to 3 GB per file and 20 uploads an hour from one address.
- Images and videos are checked against known child-abuse material before the link works. Everything is stored unencrypted, like any Quick Share upload. For confidential files, use Encrypted Share in your browser.
- Want uploads listed in a dashboard, or folders? Create a free account and use your API key with the upload API, or the ShareX setup on Windows.
Quick answers
How do I upload a file from the command line?
Run curl -F file=@photo.jpg https://sendshed.com/up. Send Shed replies with the share link and a delete link, as plain text.
Do I need an account or API key?
No. Anonymous uploads work up to 3 GB per file and 20 uploads an hour. With a free account and an API key, uploads go into your dashboard instead.
Are terminal uploads encrypted?
They're sent over HTTPS but stored unencrypted, like Quick Share, and screened before the link works. For confidential files, use Encrypted Share in the browser.
Does Send Shed work with scripts written for file.io?
Yes. Send the same request to https://sendshed.com instead of file.io: the reply is file.io-style JSON with a link, and the file is deleted after one download unless you set maxDownloads or autoDelete=false.
Rather use a browser?
Drop the file on the homepage: same limits, same links.
Send a file How terminal uploads work