Manual:createAndPromote.php
From MediaWiki.org
MediaWiki File: createAndPromote.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.24.1 • 1.23.8 |
Classes: | CreateAndPromote |
§Details[edit | edit source]
createAndPromote.php is a maintenance script that creates a new user and auto-promotes them to sysop and/or bureaucrat status. There is also an option to promote a user who already exists. If you still use MediaWiki 1.16 or older, you may need to create AdminSettings.php.
§Usage[edit | edit source]
Option/Parameter | Description |
---|---|
--help | Display help information for the script. |
--bureaucrat | Add the account to the bureaucrat group |
--sysop | Add the account to the sysop group |
--bot (since 1.22) | Add the account to the bot group |
--force | If account exists already, just grant it rights or change password. |
<username> | The name of the user you want to create or promote. The --force flag is required if a user with this name already exists. |
<password> | The password for the user. Not required if --force is used. |
§Example[edit | edit source]
php createAndPromote.php --bureaucrat --sysop WikiSysop mypassword