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.
Synopsis
Section titled “Synopsis”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.
Options
Section titled “Options”| Option | Verbs | Effect |
|---|---|---|
--field <name> | share | Which 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> | share | How long the link works, 24h by default. |
--views <1-10> | share | How many times it opens, 1 by default. |
--passphrase | share | Asks for a passphrase of at least 20 characters that the recipient must also type. keypaste generate --words 6 makes one. |
--to <label> | share | A label for your own list, never sent. |
--print | share | Prints the link rather than copying it to the clipboard. |
--endpoint <url> | share | Another share service. Or KEYPASTE_SHARE_URL. |
--offline | ls | What this vault recorded, without asking the service. |
--json | ls, open | Machine-readable output. |
<id> | revoke | The link’s id from share ls, at least its first 6 characters. |
--expired | revoke | Every expired link instead. |
--reveal | open | Prints what the link holds. |
--add | open | Adds it to the vault as a new item. |
--title <title> | open | The new item’s title under --add; the shared title by default. |
--from <host> | open | Agrees to fetch a link made on a host other than keypaste.com. |
Behaviour
Section titled “Behaviour”- 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 openspends one view.- While the desktop app holds the vault, make or revoke links in the app, or run
keypaste lockfirst. - The first link made on keypaste.com asks you to agree to keypaste’s terms of use.
--endpointand opening a link ask nothing.
Examples
Section titled “Examples”keypaste share github.comkeypaste share github.com --field item --views 2 --ttl 2h --passphrasekeypaste share kp://acme-api/staging/DATABASE_URL --printkeypaste share lskeypaste share revoke 3f9a2ckeypaste share open 'https://share.keypaste.com/#…' --add