diff --git a/application/Espo/Core/Application.php b/application/Espo/Core/Application.php index 8ce83e2390..5418944179 100644 --- a/application/Espo/Core/Application.php +++ b/application/Espo/Core/Application.php @@ -215,6 +215,9 @@ class Application public function runCommand(string $command) { + $auth = $this->createAuth(); + $auth->useNoAuth(); + $consoleCommandManager = $this->getContainer()->get('consoleCommandManager'); return $consoleCommandManager->run($command); }