1
0
Fork 0
mirror of synced 2024-05-19 12:12:36 +12:00
appwrite/app/cli.php
2021-06-28 09:19:33 +02:00

26 lines
496 B
PHP

<?php
require_once __DIR__.'/workers.php';
use Utopia\App;
use Utopia\CLI\CLI;
use Utopia\CLI\Console;
$cli = new CLI();
include 'tasks/doctor.php';
include 'tasks/maintenance.php';
include 'tasks/install.php';
include 'tasks/migrate.php';
include 'tasks/sdks.php';
include 'tasks/ssl.php';
include 'tasks/vars.php';
$cli
->task('version')
->desc('Get the server version')
->action(function () {
Console::log(App::getEnv('_APP_VERSION', 'UNKNOWN'));
});
$cli->run();