Running `boot.js` from the command line boots the TiddlyWiki kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments. The arguments are separated with spaces. The commands are identified by the prefix `--`.
The commands are processed sequentially from left to right. Processing pauses during long operations and then resumes with the next command in sequence
!!Commands
The following commands are available.
!!! load
`--load <filepath>`
Load tiddlers from 2.x.x TiddlyWiki files (`.html`), `.tiddler`, `.tid`, `.json` or other files
!!! savetiddler
`--savetiddler <title> <filename> [<type>]`
Save an individual tiddler as a specified MIME type, defaults to `text/html`
!!! wikitest
`--wikitest <dir> [save]`
Run wikification tests against the tiddlers in the given directory. Include the `save` flag to save the test result files as the new targets.
`--wikitest` looks for `*.tid` files in the specified folder. It then wikifies the tiddlers to both "text/plain" and "text/html" format and checks the results against the content of the `*.html` and `*.txt` files in the same directory.
The server is very simple. At the root, it serves a rendering of a specified tiddler. Away from the root, it serves individual tiddlers encoded in JSON, and supports the basic HTTP operations for GET, PUT and DELETE.