docs keys

List all keys in a document.

Arguments

namenecessitydescription
docrequiredDocument to operate on. Required unless the document is set through the IROH_DOC environment variable. Within the iroh console, the active document can also set with docs set.
prefixoptionalOnly list keys that start with prefix.
authoroptionalFilter by author.

Examples

docs keys

author:i3vpd4e7… doc:njszszvg…
> docs set foo bar
bafkr4ihs5cl65v6sa3gykxkecwmpuuq2xr22vfuvh2l4amgjmewdbqjjhu

author:i3vpd4e7… doc:njszszvg…
> docs set hello world
bafkr4igxrffos4lnhdjn7lioyvkcjsrsd3qsiu6vd4ntvxvxpuchl3myrq

author:i3vpd4e7… doc:njszszvg…
> docs set good morning
bafkr4idyxc27uxtcrzl5a3t42xu7hm3h2wn4mfaqt3ma5ummofsitynxle

author:i3vpd4e7… doc:njszszvg…
> docs keys
@i3vpd4e7…: foo = 6lujp3wx… (3 B)
@i3vpd4e7…: good = pc4ll6s6… (7 B)
@i3vpd4e7…: hello = 26euv2lr… (5 B)

# use a prefix to filter the keys

author:i3vpd4e7… doc:njszszvg…
> docs keys fo
@i3vpd4e7…: foo = 6lujp3wx… (3 B)