DokuWiki

It's better when it's simple

User Tools

Site Tools


cli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cli [2017-06-12 18:06] – [indexer.php] bactramcli [2022-06-30 00:48] (current) – [dwpage.php] Klap-in
Line 32: Line 32:
         commit: see $ dwpage.php --help=commit         commit: see $ dwpage.php --help=commit
         lock: see $ dwpage.php --help=lock         lock: see $ dwpage.php --help=lock
 +        gmeta: see $ dwpage.php --help=gmeta
 +            Displays metadata about a page. There is no ability to write 
 +            metadata, only read them. 
 +            e.g. $ dwpage.php -u <user> gmeta [page] <meta tag>. Where <meta tag>
 +            can be "date modified" (in quotes) or "last_change date" an empty 
 +            <meta tag> returns all metadata.
          
     OPTIONS     OPTIONS
Line 37: Line 43:
             e.g. $ ./dwpage.php -hcommit             e.g. $ ./dwpage.php -hcommit
             e.g. $ ./dwpage.php --help=commit             e.g. $ ./dwpage.php --help=commit
 +
 +
  
 ===== indexer.php ===== ===== indexer.php =====
Line 52: Line 60:
         -q, --quiet    don't produce any output         -q, --quiet    don't produce any output
  
-This needs to be run as the appropriate user and possibly the right directory to work. e.g. www-data in ~www-data under debian lenny. If you experiment errors, please firstly check that you are calling the script in the //bin// path and not in the ///lib/exe//.+This needs to be run as the appropriate user and possibly the right directory to work. e.g. www-data in ~www-data under debian lenny. So for example, if your wiki is in ''/var/www/wiki''
 + 
 +  sudo -u www-data /var/www/wiki/bin/indexer.php 
 + 
 +If you experience errors, please firstly check that you are calling the script in the //bin// path and not in the ///lib/exe//.
  
 When working with farms, you can define the animal variable while calling the script. Please note that this is on single command line. When working with farms, you can define the animal variable while calling the script. Please note that this is on single command line.
Line 123: Line 135:
     executed in all repositories found within this DokuWiki installation     executed in all repositories found within this DokuWiki installation
 </code> </code>
 +
 +===== plugin.php =====
 +
 +This tool gives access to all installed [[devel:CLI Plugins]]. Call it without any arguments to get a list of installed plugins:
 +
 +  ./bin/plugin.php
 +
 +Call the plugin's help screen to learn more
 +
 +  ./bin/plugin.php <pluginname> -h
 +
 +
 +====Finding more Cli plugins====
 +Use [[plugintype>256#extension__table|Cli Plugins]] to add other functionality to command line. 
 +
 +A summary of recent plugins which indicate Cli support:
 +
 +---- pluginquery -----
 +SELECT: name, description
 +WHERE:  (type > ? AND type < ?) and (compatible LIKE ? OR compatible LIKE ? OR compatible LIKE ? OR compatible = ?)
 +VALUES: 255, 512, %Igor%, %Hogfather%, %Greebo%, (bundled)
 +-----
 +
 +To implement such a plugin please have a look at the [[devel:cli plugins|Cli plugins development documentation]].
cli.1497283619.txt.gz · Last modified: 2017-06-12 18:06 by bactram

Except where otherwise noted, content on this wiki is licensed under the following license: 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