docs get
Get entries in a document.
Arguments
name | necessity | description |
---|---|---|
key | required | Key of the entry to fetch. |
doc_id | required | 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 . |
prefix | If true, get all entries that start with key. | |
author | If provided, only return entries from this author. | |
old | If true, old entries will be included. By default only the latest value for each key is shown. | |
content | Also 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