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.

OptionAliasRequiredDescription
--emailYesUser’s email address.
--usernameYesUsername.
--display-nameNoDisplay name. Defaults to the username.
--password-pNoSet the password inline. If omitted, you are prompted.
--activate-aNoActivate immediately instead of leaving the account pending approval.
MessageCause
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 passwordThe password is shorter than 6 characters.