1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00
appwrite/app/cli.php

25 lines
460 B
PHP
Raw Normal View History

2020-07-29 07:48:51 +12:00
<?php
require_once __DIR__.'/init.php';
use Utopia\App;
use Utopia\CLI\CLI;
use Utopia\CLI\Console;
$cli = new CLI();
include 'tasks/doctor.php';
include 'tasks/install.php';
include 'tasks/migrate.php';
include 'tasks/sdks.php';
include 'tasks/ssl.php';
2020-10-15 18:03:38 +13:00
include 'tasks/vars.php';
2020-07-29 07:48:51 +12:00
$cli
->task('version')
->desc('Get the server version')
->action(function () {
Console::log(App::getEnv('_APP_VERSION', 'UNKNOWN'));
});
$cli->run();