Command Line Interface (CLI)
We have already come across the CLI during the installation chapter when we also dealt with upgrades. However, the CLI has a few more tricks up its sleeve, which we will deal with next.
First of all let us look at the way you call any CLI scripts, which are either located in admin/cli/*
or in the sub-folder of plugins that offer a CLI option—for example, auth/ldap/cli
. To call a CLI script, follow the following notation:
sudo –u <apache_user> /usr/bin/php admin/cli/<script>.php
Your <apache_user>
is usually www-data
or apache
. Every CLI script has a --help
parameter that offers additional information and also describes calling options. The following is a list of some useful CLI commands. For all others commands, have a look in their respective CLI directories. We do not list any parameters here as these are explained well in the --help
options.
PHP Script |
Purpose |
---|---|
|
Intended for clustered sites that... |