doc get

Get entries in a document.

Arguments

namenecessitydescription
keyrequiredKey of the entry to fetch.
doc_idrequiredRequired unless the document is set through the IROH_DOC environment variable. Within the Iroh console, the active document can also set with doc set.
prefixIf true, get all entries that start with key.
authorIf provided, only return entries from this author.
oldIf true, old entries will be included. By default only the latest value for each key is shown.
contentAlso print the content for each entry (but only if smaller than 1MB and valid UTf-8).

Examples

doc get

> doc new --switch
dyyelvqqruxjwrlntsdvsksopwznmgnfxpehcsoqckklvqfxar2q
Active doc is now dyyelvqq…

author:fhu3uk4w… doc:dyyelvqq…
> doc set foo bar
@fhu3uk4w…: foo = 6lujp3wx… (3 B)

author:fhu3uk4w… doc:dyyelvqq…
> doc get foo -c
@fhu3uk4w…: foo = 6lujp3wx… (3 B)
bar