This translation is older than the original page and might be outdated. See what has changed.
Traductions de cette page?:

Outils en ligne de commande

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 :

  1. Vous pouvez les rendre exécutables :
    $> chmod +x <script>.php
    $> ./<script>.php
  2. ou les lancer comme ci-dessous (recommandé) :
    $> /path/to/php <script>.php

dwpage.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

indexer.php

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

wantedpages.php

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
fr/cli.txt · Dernière modification: 2010/04/26 15:22 par 217.108.95.20
 
Sauf mention contraire, le contenu de ce wiki est placé sous la licence suivante : CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate