Available commands
The Joomla CLI offers a long list of commands. To explore this list, type php joomla.php list
in your Terminal and press Enter.
You will be provided with the list of available commands. This will look as follows:
Table 11.1 – List of CLI commands
The CLI commands listed in Table 11.1 can be launched from the terminal by preceding them with the php joomla.php
command, as shown in the following example:
php joomla.php cache:clean
After executing this command, the system will prompt us with the result of the operation, as shown in Figure 11.4:
Figure 11.4 – CLI | cache:clean command
In the next few sections, we will explore some real-life scenarios where we will use the CLI to perform operations on users and update our website.