Command Line Interface


NacoWiki has a command line interface. To use run on the CLI:

Sub-commands are defined by the Core class and Plugins. The standard distribution defines the following:

bloggen

Generate static blog site

Usage:

php web/albatros.php bloggen [options]

Options

Note that most of the configuration is in the opts.yaml at the root of the wiki.


cfg

Dump config

This implements the cli sub-command cfg

This shows current running configuration of the wiki.


files

List files

Makes a list of Wiki files


gvars

Dump global variables

This implements the cli sub-command gvars

This will dump all the variables defined in the configuration of the wiki user cfg[plugins][PluginVars]


help

Show this help

This implements a CLI sub-command for HELP

It will look into the plugin configuration and display what are the available sub-commands. In addition if there is a docstring for the implementing function, it will display it. It also shows what plugin's class is providing this command.


install

Install assets

This implements a CLI sub-command for plugins.

This will check if the assets directory specified in the \NanoWikiApp configuration exists, and if it does not exist, it will create it.


mkassets

Copy assets

Makes a copy of static assets to the generated site


plugins

List available plugins

This implements a CLI sub-command for plugins.

This looks in the plugin configuration and shows what plugins are currently available, its source file and the plugin version if any


render

Render a wiki page as HTML


serve

Serve pages