Table of Contents

Herramientas en la línea de comandos

DokuWiki viene con unos pocos scripts PHP que pueden ejecutarse desde una línea de comando (UNIX). Todos están en el directorio bin.

Nota: Por supuesto, para poder ejecutarlos necesitas tener un intérprete PHP CLI instalado.

Existen dos métodos para ejecutar éstos scripts. Podemos hacerlos ejecutables:

$> chmod +x <script>.php
$> ./<script>.php

o hacerlo así (recomendado):

$> /path/to/php <script>.php

FIXME

dwpage.php

Nota: Se han reportado problemas con algunos plugins que dependen del ACL y/o la autenticación de DokuWiki event system.

Uso: 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

indexer.php

Te permite actualizar la búsqueda indexada.

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

wantedpages.php

Muestra una lista de las páginas que faltan (existen enlaces en el Wiki, pero la páginas no ha sido creadas todavía).

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=<action>: get help