mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
24 lines
470 B
PHP
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'));
|
|
});
|
|
}
|
|
}
|