attachment

vb attachment add [OPTIONS] [PAGENAME] FILENAME

Description

Add an attachment to an existing wiki page or technote.

One of PAGENAME, DATETIME or TECHNOTE-ID must be specified.

DATETIME

Options

-t, --technote DATETIME

Timestamp of the technote to attach to. Attaches to the most recently modified technote with the specified timestamp.

-t, --technote TECHNOTE-ID

Technote identifier to attach to.

Examples

  • Create a wiki page and attach a file to it

$ vb sys echo "wiki content" > wiki.txt
$ vb wiki create testWiki wiki.txt -M text/plain
Created new wiki page testWiki.
$ vb sys echo "attachment" > note.txt
$ vb attachment add testWiki note.txt
Attached note.txt to wiki page testWiki.