docs 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 docs 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

docs get

> docs create --switch
dyyelvqqruxjwrlntsdvsksopwznmgnfxpehcsoqckklvqfxar2q
Active doc is now dyyelvqq…

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

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