Manual:CreateAndPromote.php/en

Details
createAndPromote.php is a maintenance script that creates a new user or modifies an existing user. For the corresponding user, the script can then grant him additional rights (e.g. sysop, bureaucrat or bot rights) and change the user's password.

Since the script cannot only be used to create new users, but it can also be used on existing users and since it cannot only be used to promote the user, but also without promoting him, the name createAndPromote.php is somewhat misleading.

Usage
php createAndPromote.php [--bureaucrat] [--sysop] [--bot] [--custom-groups=, ] [--force] username [password]

Example
This creates a new user called "WikiSysop", sets his password and adds the user to the bureaucrat group, the sysop group and to the custom developer group.