User Creation via CLI
The user:create command creates user accounts from the command line. This is useful for administrative tasks and automated setup.
docker exec -it slink slink user:create \ --email=<email> \ --username=<username>The command prompts for a password interactively unless you pass --password.
Options
Section titled “Options”| Option | Alias | Required | Description |
|---|---|---|---|
--email |
Yes | User’s email address. | |
--username |
Yes | Username. | |
--display-name |
No | Display name. Defaults to the username. | |
--password |
-p |
No | Set the password inline. If omitted, you are prompted. |
--activate |
-a |
No | Activate immediately instead of leaving the account pending approval. |
Related Commands
Section titled “Related Commands”user:activateactivates a pending user accountuser:grant:rolegrants roles to usersuser:revoke:rolerevokes roles from users
Errors
Section titled “Errors”| Message | Cause |
|---|---|
Error: Email already registered. |
The email is already in use. |
Error: Username already exist. |
The username is already taken. |
Error: Invalid email address. |
The email format is invalid. |
Error: Min 6 characters password |
The password is shorter than 6 characters. |