appwrite/src/Appwrite/Platform/Tasks/Version.php
2024-04-01 13:02:47 +02:00

24 lines
470 B
PHP

<?php
namespace Appwrite\Platform\Tasks;
use Utopia\CLI\Console;
use Utopia\Platform\Action;
use Utopia\System\System;
class Version extends Action
{
public static function getName(): string
{
return 'version';
}
public function __construct()
{
$this
->desc('Get the server version')
->callback(function () {
Console::log(System::getEnv('_APP_VERSION', 'UNKNOWN'));
});
}
}