DokuWiki

It's better when it's simple

Инструменты пользователя

Инструменты сайта


ru:cli

Это старая версия документа!


Инструменты для работы из командной строки

DokuWiki поставляется с несколькими PHP-скриптами, предназначенными для выполнения из командной строки (UNIX). Все эти скрипты располагаются в директории bin.

Замечание: Для запуска этих скриптов необходимо чтобы в вашей системе был установлен интерпретатор PHP.

Есть два способа запускать эти скрипты.

- Сделать их исполнимыми 1):

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

- или запускать следующим образом (именно так и рекомендуется):

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

dwpage.php

Note: There have been problems reported with some plugins that rely on ACLs and authentication or the DokuWiki event system.

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

Allows you to update the search index.

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

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
1)
executable
ru/cli.1253021186.txt.gz · Последнее изменение: 2009-09-15 15:26 — 93.91.4.119

Если не указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki