From 0fc725f693b03fd7c323e3ce1fd22a2214b59830 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 23 Jan 2024 15:23:26 -0800 Subject: [PATCH] CLI-1253: Add ACLI_NO_TELEMETRY option (#1666) --- src/Command/CommandBase.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);