mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-28 04:19:56 +00:00
2e2d30bae9
Fixes #531
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
created: 20131219100520659
|
|
modified: 20140617212408196
|
|
tags: howto
|
|
title: Using TiddlyWiki on Node.js
|
|
type: text/vnd.tiddlywiki
|
|
|
|
TiddlyWiki5 can be used on the command line to perform an extensive set of operations based on TiddlyWikiFolders, TiddlerFiles and TiddlyWikiFiles.
|
|
|
|
For example, the following command loads the tiddlers from a TiddlyWiki HTML file and then saves one of them in static HTML:
|
|
|
|
```
|
|
tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html
|
|
```
|
|
|
|
Running `tiddlywiki` 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 from left to right. The arguments are separated with spaces.
|
|
|
|
The first argument is the optional path to the [[TiddlyWikiFolder|TiddlyWikiFolders]] to be loaded. If not present, then the current directory is used.
|
|
|
|
The commands and their individual arguments follow, each command being identified by the prefix `--`.
|
|
|
|
```
|
|
tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]
|
|
```
|
|
|
|
The available commands are:
|
|
|
|
<ul><$list filter="[tag[command]]"><li><$link to={{!!title}}><$view field="title"/></$link></li></$list></ul>
|
|
|
|
See also:
|
|
|
|
* [[Environment Variables on Node.js]]
|