For developers

SendByLink CLI

Send folders of any size by link from your terminal, a server or a CI job, and pull links back down just as fast. Every file is checked before it lands, a cut transfer picks up where it stopped, and --e2ee encrypts on your machine so the files stay unreadable to anyone without the link.

Sending takes an API key, which comes with Pro, Team and Agency. See plans. Updated 26 November 2026.

Install

npm install -g sendbylink
sendbylink --version

It needs Node.js 20 or newer and runs on macOS, Linux and Windows. To try it without installing, put npx in front of any command.

Log in

Create a key under Developers in the app, then hand it to the CLI once. Paste it when asked, pass it as a flag or pipe it in.

sendbylink login
sendbylink login --api-key sbl_live_...
echo "$SENDBYLINK_KEY" | sendbylink login

The key is saved in ~/.config/sendbylink (%APPDATA%\sendbylink on Windows), readable only by you. On servers and in CI, set SENDBYLINK_API_KEY instead. sendbylink whoami shows the account and workspace the key acts for, and sendbylink logout forgets it.

Send files and folders

sendbylink send ./shoot-2026 contract.pdf --title "Final cut" --expires 14
https://sendby.link/x7Kp2mQ9

Folders keep their tree. Progress shows on stderr, and the link prints on stdout once every file is up and checked by the server.

OptionWhat it does
--titleA title for the link
--messageA message for whoever opens it
--passwordAsk for a password before the files show
--burnThe link dies after the first complete download
--expiresDays until the link expires, like 7 or 30d
--regionStore the files in the eu or the us
--e2eeEncrypt end to end, with the key in the link
--passphraseEncrypt end to end with a passphrase instead
--parallelParts in flight at once, 16 by default, up to 64
--newStart over instead of resuming an earlier run

Download a link

sendbylink get https://sendby.link/x7Kp2mQ9 -o ~/Downloads

Every file is checked against the sender's checksum before it gets its name, so a half-written or damaged file never passes for the real thing. Files already in the folder stay put: the new copy gets a number, unless you pass --force. Names that would land outside the folder are refused.

Plain and end-to-end encrypted links open for anyone. A link behind a password, an email code or burn after download asks a browser to prove a person is there, so the CLI opens those with your API key. Pass --password, --email and --code, or answer the prompts.

End-to-end encryption

With --e2ee, the CLI encrypts every file and every file name on your machine before a byte leaves it. The key goes in the part of the link after #, which browsers never send to a server, so we store ciphertext we can't read.

sendbylink send ./raw-footage --e2ee
https://sendby.link/Rf4hT8wZ#k2Jx...

sendbylink get "https://sendby.link/Rf4hT8wZ#k2Jx..."

Prefer to share the secret another way? --passphrase keeps the key out of the link entirely, and the recipient types the passphrase in the browser or passes it to get.

sendbylink send ./contracts --passphrase "correct horse battery staple"
sendbylink get https://sendby.link/Lw9cV3nB --passphrase "correct horse battery staple"

Quote encrypted links in your shell. Downloads check each file against the SHA-256 sealed inside the encrypted file list.

Resume after a cut

Dropped Wi-Fi, a closed laptop, Ctrl-C: run the same command again. send asks the server which parts it already has and uploads only the rest. get keeps unfinished files as .part files and fetches only the missing ranges, renewing its download tokens as it goes.

Files stream from disk in parts, so memory stays flat whether you send 1 GB or 1 TB, and network errors, timeouts and rate limits are retried with backoff on their own.

Manage your transfers

sendbylink ls
sendbylink info x7Kp2mQ9
sendbylink rm x7Kp2mQ9

ls lists your transfers, newest first. info shows one with its link, files and downloads, and rm deletes it, so the link stops working for everyone. Both take an id or the link itself.

Scripts and CI

Add --json to any command for output you can parse, and -q to keep progress off stderr. In CI, keep the key in a secret and expose it to the job as SENDBYLINK_API_KEY; on GitHub Actions that's one line under the step's env. Then a build ships in one command:

npx sendbylink send dist/ --title "Build $GITHUB_SHA" --expires 7 --json
Exit codeWhat it means
0Done
1Something failed; the message says what, with a request id
2A flag or argument is wrong
3The API key is missing, wrong or can't do this
4The link expired, burned or was deleted
5A file didn't match its checksum and was not saved
130Stopped with Ctrl-C; run it again to resume

Everything the CLI does goes through the public API. To build your own client, start with the API reference.