diff --git a/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php b/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
index 64b934061b6c1..69c369f1ec9f6 100644
--- a/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
@@ -84,7 +84,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (($currentValue !== null) && ($inputOptions[$option->getName()] !== null)) {
$dialog = $this->getHelperSet()->get('question');
$question = new Question(
- 'Overwrite the existing configuration for ' . $option->getName() . '?[Y/n]'
+ 'Overwrite the existing configuration for ' . $option->getName() . '?[Y/n]',
+ 'y'
);
if (strtolower($dialog->ask($input, $output, $question)) !== 'y') {
$inputOptions[$option->getName()] = null;