This is an adaptation of the main wikka.php script for command line usage. It offers a new dimension of backend functionality and proves especially useful for scheduled cron usage, like running nightly reports and importing or exporting content.

In adapting the cli.php script from wikka.php, I tried to maintain the essential relevant functionality while cleaning up the existing wikka.php code, which appears to contain a bit of cruft. I believe the cli.php offers some suggestions for how the wikka.php file might be refactored.