Jump to content

Manual:createBotPassword.php

From mediawiki.org
MediaWiki version:
1.35

Details[edit]

createBotPassword.php file is a maintenance script to create a bot password for a user. See Manual:Bot passwords for more information.

Options/Arguments[edit]

Option/Argument Description Required?
<user> The username to create a bot password for Required
<password> A password will be generated if this is omitted. If supplied, it must be exactly 32 characters Optional
--showgrants Prints a description of available grants Optional
--appid App id for the new bot password Optional
--grants CSV list of permissions to grant Optional

Usage[edit]

php maintenance/createBotPassword.php [ <user>| <password>| --showgrants| --appid| --grants ]

See the grants available[edit]

Terminal

Create a new bot account[edit]

Terminal
Warning Warning: The grant "basic" is not optional! If you forget the grant "basic", you can see the cryptic error "readapidenied" when you use the MediaWiki API.

See also[edit]