desc('List all the server environment variables') ->callback(fn () => $this->action()); } public function action(): void { $config = Config::getParam('variables', []); $vars = []; foreach ($config as $category) { foreach ($category['variables'] ?? [] as $var) { $vars[] = $var; } } foreach ($vars as $key => $value) { Console::log('- ' . $value['name'] . '=' . System::getEnv($value['name'], '')); } } }