1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00
appwrite/app/tasks/vars.php
2020-10-15 08:03:38 +03:00

18 lines
401 B
PHP

<?php
global $cli;
use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Config\Config;
$cli
->task('vars')
->desc('List all the server environment variables')
->action(function () {
$variables = Config::getParam('variables', []);
foreach ($variables as $key => $value) {
Console::log('- '.$value['name'].'='.App::getEnv($value['name'], ''));
}
});