Manual:createBotPassword.php

From Linux Web Expert

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.35
<translate> MediaWiki version:</translate>

Details

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

Options/Arguments

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

Usage

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

See the grants available

Terminal

Create a new bot account

Terminal
File:OOjs UI icon notice-destructive.svg <translate> Warning:</translate> 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