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.
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.
Rather use a browser?
Drop the file on the homepage: same limits, same links.
Send a file How terminal uploads work