Skip to content

keypaste share

Makes an encrypted link to one item’s field, or the whole item, that opens a set number of times. Lists, revokes and opens links.

Terminal window
keypaste share <item> [--field <name>] [--ttl <5m-7d>] [--views <1-10>] [--passphrase] [--to <label>] [--print] [--endpoint <url>]
keypaste share ls [--offline] [--json]
keypaste share revoke [<id>] [--expired]
keypaste share open <link> [--reveal] [--add] [--title <title>] [--from <host>] [--json]

Every verb also takes --vault <path> and --keyfile <path>. <item> can be a kp:// reference, which names its own field. Making a link needs a free keypaste account: keypaste account login signs this computer in, and the app and the CLI share one sign-in. Opening one needs none.

OptionVerbsEffect
--field <name>shareWhich field: item for the whole item, password, username, url, notes, login, or a custom field named like an environment variable. The password by default.
--ttl <5m-7d>shareHow long the link works, 24h by default.
--views <1-10>shareHow many times it opens, 1 by default.
--passphraseshareAsks for a passphrase of at least 20 characters that the recipient must also type. keypaste generate --words 6 makes one.
--to <label>shareA label for your own list, never sent.
--printsharePrints the link rather than copying it to the clipboard.
--endpoint <url>shareAnother share service. Or KEYPASTE_SHARE_URL.
--offlinelsWhat this vault recorded, without asking the service.
--jsonls, openMachine-readable output.
<id>revokeThe link’s id from share ls, at least its first 6 characters.
--expiredrevokeEvery expired link instead.
--revealopenPrints what the link holds.
--addopenAdds it to the vault as a new item.
--title <title>openThe new item’s title under --add; the shared title by default.
--from <host>openAgrees to fetch a link made on a host other than keypaste.com.
  • The item is encrypted on this computer and only ciphertext goes to keypaste.com. The key is in the link, so whoever holds the link can open it until its views or time run out.
  • A link carries the title, username, password, website, notes and custom fields. Its one-time code and attachments stay behind, and a link holds 16 KB at most.
  • share open spends one view.
  • While the desktop app holds the vault, make or revoke links in the app, or run keypaste lock first.
  • The first link made on keypaste.com asks you to agree to keypaste’s terms of use. --endpoint and opening a link ask nothing.
Terminal window
keypaste share github.com
keypaste share github.com --field item --views 2 --ttl 2h --passphrase
keypaste share kp://acme-api/staging/DATABASE_URL --print
keypaste share ls
keypaste share revoke 3f9a2c
keypaste share open 'https://share.keypaste.com/#…' --add