Skip to content

User Creation via CLI

The user:create command creates user accounts from the command line. This is useful for administrative tasks and automated setup.

Terminal window
docker exec -it slink slink user:create \
--email=<email> \
--username=<username>

The command prompts for a password interactively unless you pass --password.

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.
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.