Example – managing users through the CLI
In this example, we will explore the commands that allow us to manage users through the CLI. Follow these steps:
- Let’s create a user using the
php joomla.php
user:add
command:
Figure 11.5 – CLI | Creating a new user
- As shown in Figure 11.5, the system becomes interactive and requests us to input a username. In this case, we will type
testuser
as the username and press Enter. - The system will then ask for the full name of the user. Type
Test User
and press Enter. - The system will request the user’s email address. Insert their email address and press Enter.
- Next, we’ll be asked for the password of the user. Type their password and press Enter.
- The system will then request us to choose a User Group, as shown in Figure 11.6:
Figure 11.6 – CLI | New user creation
- In our example, we are creating a registered...