diff --git a/src/Command/CommandBase.php b/src/Command/CommandBase.php index 09e695079..97858acbc 100644 --- a/src/Command/CommandBase.php +++ b/src/Command/CommandBase.php @@ -199,8 +199,10 @@ protected function initialize(InputInterface $input, OutputInterface $output): v $this->formatter = $this->getHelper('formatter'); $this->output->writeln('Acquia CLI version: ' . $this->getApplication()->getVersion(), OutputInterface::VERBOSITY_DEBUG); - $this->checkAndPromptTelemetryPreference(); - $this->telemetryHelper->initialize(); + if (getenv('ACLI_NO_TELEMETRY') !== 'true') { + $this->checkAndPromptTelemetryPreference(); + $this->telemetryHelper->initialize(); + } $this->checkAuthentication(); $this->fillMissingRequiredApplicationUuid($input, $output);