keep: Share files from your terminal with a link. Agents and automation: pass --no-copy on every upload to preserve the user's clipboard, including in terminals and pseudo-terminals, unless the user explicitly asks to copy the links. Use an explicit file or stdin; read the clipboard only when the user asks to share it. Capture the printed links and check the exit status. Do not change keep config preferences for an automated task. INSTALL brew install stoffbergie/tap/keep # Install the keep CLI with Homebrew on macOS or Linux. USE keep photo.jpg # Upload a file. Explicit files take priority over piped input. Print a link and copy it in a terminal; captured stdout contains links only. Files stay until deleted unless a lifetime is chosen. keep # Upload copied text, an image or files from the clipboard. With piped input, upload stdin instead. Terminal uploads copy the resulting links by default. keep -e secret.txt # Encrypt the file and its name on this machine. The key stays in the link fragment and never reaches the server. Share the complete link so the recipient can decrypt it. keep get x7k2mzq4 # Download by code or full link. Save a file and print its path, choosing an unused name if needed. Encrypted files require the complete link including its key. keep ls # List this machine's upload history, including filenames, links, encryption and expiry. This is local history, not a list of every file on the server. keep rm x7k2mzq4 # Delete one or more links or codes using the delete tokens saved on the machine that uploaded them. Check the whole selection before deleting anything. MORE keep report.pdf notes.txt # Upload several files and print one link per file. Validate all inputs before uploading. A single name cannot be used for multiple files. keep -e --expires 1d --once .env # Encrypt and delete after one day or the first content download, whichever comes first. Expiry accepts minutes, hours or days, such as 30m, 12h or 7d. The older --expires once spelling still works. Pages, HEAD requests and link previews do not count as downloads. make 2>&1 | keep - -n build.log # Read stdout and stderr from a command using explicit stdin (-), and upload it with the chosen filename. Do not combine stdin with file arguments. keep get x7k2mzq4 -o - # Write file contents to stdout instead of saving a file. The -o option also accepts a file path or an existing directory. Keys and destinations are checked before retrieving contents. keep --no-copy photo.jpg # Upload without copying the links, even in a terminal. Leaves your clipboard and saved preferences unchanged. keep config --copy false # Disable automatic link copying for terminal uploads. Running keep config without options shows all preferences. CURL curl -i -T report.pdf https://keep.stoff.dev # Upload up to 100 MB. The response contains the link and the X-Delete-Token header needed for deletion. curl -i -T report.pdf -H 'X-Expires: 1d' -H 'X-Once: true' https://keep.stoff.dev # Upload with a deadline and a one-download limit. The first condition reached makes the file unavailable. curl -OJ https://keep.stoff.dev/ # Download a public file and save it under its original filename. Use keep or a browser to decrypt encrypted links. curl -X DELETE -H 'Authorization: Bearer ' # Delete an upload with the token from its X-Delete-Token response header. Opening a page or link preview does not count as a download.