Manual:$wgCommandLineMode/en

Details
This flag is automatically set to false in DefaultSettings.php if it has not already been set by this time. It is set to true in certain maintenance scripts that may be run from the command line. It is set to true in certain maintenance scripts that may be run from the command line.