Classes/Console/Command/InstallCommandController.php
public function databaseSelectCommand($databaseName, $useExistingDatabase = false)
    {
        $selectType = $useExistingDatabase ? 'existing' : 'new';
        $this->executeActionWithArguments('databaseSelect', ['type' => $selectType, $selectType => $databaseName]);
    }
public function databaseSelectCommand($databaseName, $useExistingDatabase = false)
    {
        $selectType = $useExistingDatabase ? 'existing' : 'new';
        $this->executeActionWithArguments('databaseSelect', ['type' => $selectType, $selectType => $databaseName]);
    }
Select database

Select a database by name

@param string $databaseName Name of the database
@param bool $useExistingDatabase Use already existing database?
@Definition\Option(name="databaseName")
@internal