1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-30 20:10:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/nodejs/Using TiddlyWiki on Node.js.tid

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-12-19 10:08:14 +00:00
created: 20131219100520659
2014-09-20 14:06:33 +00:00
modified: 20140920135025757
2014-09-12 15:05:37 +00:00
tags: [[TiddlyWiki on Node.js]]
2013-12-19 10:08:14 +00:00
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 `--`.
```
2013-12-19 16:45:13 +00:00
tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]
2013-12-19 10:08:14 +00:00
```
2013-12-19 16:45:13 +00:00
The available commands are:
2014-09-20 14:06:33 +00:00
<<list-links "[tag[Commands]]">>