Skip to content

show

Prints an item’s surroundings — id, title, kind, tags, and the fields that are not secret.

Terminal window
sefy show <REFERENCE>

For a record — a login, a card, an SSH key — every field is printed in the order the kind reads in. Secret ones stay covered, and the line says exactly which get uncovers them:

Terminal window
$ sefy show mail
id: 2
title: mail
kind: login
tags: mail
login: someone@example.com
password: <hidden — use sefy get --field password>
url: https://mail.example.com
totp: <hidden — sefy otp gives the code>
notes: recovery in the drawer
Terminal window
$ sefy show visa
id: 3
title: visa
kind: card
tags: money
number: <hidden — use sefy get --field number>
holder: A LOVELACE
expiry: 01/29
cvv: <hidden — use sefy get --field cvv>
pin: <hidden — use sefy get --field pin>

A field the record does not carry is simply not there: show prints what is stored, so an account with no URL has no url line rather than an empty one.

For a file, the stored name and size:

Terminal window
$ sefy show id_ed25519
id: 3
title: id_ed25519
kind: file
tags: keys
file: id_ed25519
size: 387 bytes

A note has no secret field — the body is the item — so show prints it after a rule:

Terminal window
$ sefy show bank
id: 1
title: bank
kind: note
tags: home, money
---
code 4815

That means show on a note does put its contents in your terminal scrollback. If a note holds something you would rather copy than display, reach for get instead, which puts it on the clipboard.

An item whose contents have changed says how many earlier versions it keeps, and where to look:

Terminal window
$ sefy show mail
id: 2
title: mail
kind: login
history: 3 earlier versions (sefy history 2)
login: someone@example.com
password: <hidden — use sefy get --field password>

An item never changed has no such line.

  • get — the only way a covered secret comes out
  • ls — the same items, one line each
  • history — the earlier versions of what it holds
  • Versions and compatibility — items this build cannot read