2014-06-17 21:26:27 +00:00
created: 20140617211749290
2021-11-04 17:53:09 +00:00
modified: 20211104172343220
2014-09-12 15:05:37 +00:00
tags: [[TiddlyWiki on Node.js]]
2014-06-17 21:26:27 +00:00
title: Environment Variables on Node.js
type: text/vnd.tiddlywiki
2018-04-24 21:06:09 +00:00
[[TiddlyWiki on Node.js]] supports the following OS environment variables for specifying a delimited list of paths to search for plugins and editions:
2014-06-17 21:26:27 +00:00
* `TIDDLYWIKI_PLUGIN_PATH` - Search path for ordinary plugins
* `TIDDLYWIKI_THEME_PATH` - Search path for themes
* `TIDDLYWIKI_LANGUAGE_PATH` - Search path for languages
* `TIDDLYWIKI_EDITION_PATH` - Search path for editions (used by the InitCommand)
2021-11-04 17:53:09 +00:00
''Note 1'': The delimiter may vary between operating systems. While on Windows a semicolon `;` is used, Linux implements a colon `:`.
''Note 2'': On Linux systems, it may be necessary to //''export''// the variable as well as to define it.
2018-04-24 21:06:09 +00:00
2014-06-17 21:26:27 +00:00
The additional paths should each point to folders structured like the equivalent directories in the TiddlyWiki5 GitHub repository: the plugin, theme and language directories contain `publisher/pluginname/<files>` while the edition directories contain `editionname/<files>`
For example:
```
TIDDLYWIKI_PLUGIN_PATH=~/MyPluginStore
tiddlywiki mywiki --build index
```