docs import

Import data into a document.

Arguments

namenecessitydescription
pathrequiredPath to a local file or directory to import. Pathnames will be used as the document key
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 be set with docs switch.
authorrequiredAuthor of the entry. Required unless the author is set through the IROH_AUTHOR environment variable. Within the Iroh console, the active author can also be set with author switch.
prefixIf true, get all entries that start with key.
in placeIf true, don't copy the file into iroh, reference the existing file instead, Moving a file imported with in-place will result in data corruption

Examples

docs import

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

author:fhu3uk4w… doc:dyyelvqq…
> docs import ~/foo.txt --prefix bar
@fhu3uk4w…: bar/foo.txt = 6lujp3wx… (3 B)

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