DokuWiki fournit quelques scripts PHP pouvant être exécutés depuis une ligne de commance (UNIX). Tous ces scripts sont situés dans le répertoire bin.
Note : Pour pouvoir lancer ces scripts, l'interpréteur PHP en ligne de commande (CLI) doit être installé sur votre système.
Il y a deux manières de lancer les scripts :
$> chmod +x <script>.php $> ./<script>.php
$> /path/to/php <script>.php
Note : Il y a eu des problèmes rapportés avec certains plugins qui s'appuient sur les ACL et l'authentification ou le système d'événements de DokuWiki.
Usage: dwpage.php [opts] <action>
Utility to help command line DokuWiki page editing, allow
pages to be checked out for editing then committed after changes
Normal operation would be;
ACTIONS
checkout: see $ dwpage.php --help=checkout
commit: see $ dwpage.php --help=commit
lock: see $ dwpage.php --help=lock
OPTIONS
-h, --help=<action>: get help
e.g. $ ./dwpage.php -hcommit
e.g. $ ./dwpage.php --help=commit
Permet de mettre à jour l'index de recherche.
Usage: indexer.php <options>
Updates the searchindex by indexing all new or changed pages
when the -c option is given the index is cleared first.
OPTIONS
-h, --help show this help and exit
-c, --clear clear the index before updating
-q, --quiet don't produce any output
Liste les pages demandées.
Usage: wantedpages.php [wiki:namespace]
Outputs a list of wanted pages (pages which have
internal links but do not yet exist).
If the optional [wiki:namespace] is not provided,
defaults to the root wiki namespace
OPTIONS
-h, --help get help