Example – updating your site through the CLI
In this example, we will update our website using various CLI commands.
First, we will check for updates by using the php joomla.php core:check-updates
command and pressing Enter.
The system will notify us of whether a new version can be installed, as shown in Figure 11.9:
Figure 11.9 – CLI | Checking for updates
To perform the update, we can execute the php joomla.php core:update
command and press Enter.
The system will then process the update. This may take several minutes, depending on the size of the update package. Once the update is completed, the system will prompt you with a confirmation message, as shown in Figure 11.10:
Figure 11.10 – CLI | Joomla core updated successfully
As you can see, updating Joomla through the CLI is very easy.
With this example, we have finished exploring Joomla 4’s CLI.