cli
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cli [2017-06-12 18:06] – [indexer.php] bactram | cli [2024-01-31 23:58] (current) – [Finding more CLI plugins] 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 < | ||
+ | can be "date modified" | ||
+ | <meta tag> returns all metadata. | ||
| | ||
OPTIONS | OPTIONS | ||
Line 37: | Line 43: | ||
e.g. $ ./ | e.g. $ ./ | ||
e.g. $ ./ | e.g. $ ./ | ||
+ | |||
+ | |||
===== indexer.php ===== | ===== indexer.php ===== | ||
Line 52: | Line 60: | ||
-q, --quiet | -q, --quiet | ||
- | 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 | + | 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. |
+ | |||
+ | sudo -u www-data / | ||
+ | |||
+ | If you experience | ||
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 | ||
</ | </ | ||
+ | |||
+ | ===== plugin.php ===== | ||
+ | |||
+ | This tool gives access to all installed [[devel:CLI Plugins]]. Call it without any arguments to get a list of installed plugins: | ||
+ | |||
+ | ./ | ||
+ | |||
+ | Call the plugin' | ||
+ | |||
+ | ./ | ||
+ | |||
+ | |||
+ | ====Finding more CLI plugins==== | ||
+ | Use [[plugintype> | ||
+ | |||
+ | A summary of plugins which indicate CLI support: | ||
+ | |||
+ | ---- pluginquery ----- | ||
+ | SELECT: name, description | ||
+ | WHERE: | ||
+ | VALUES: 255, 512, @DATEMOSTRECENT@, | ||
+ | headline: CLI plugins compatible with last two releases | ||
+ | ----- | ||
+ | |||
+ | |||
+ | 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