1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00
appwrite/app/cli.php

33 lines
673 B
PHP
Raw Normal View History

2020-07-29 07:48:51 +12:00
<?php
2022-05-24 02:54:50 +12:00
require_once __DIR__ . '/init.php';
require_once __DIR__ . '/controllers/general.php';
2020-07-29 07:48:51 +12:00
use Utopia\App;
use Utopia\CLI\CLI;
use Utopia\CLI\Console;
2022-04-10 21:38:22 +12:00
use Utopia\Database\Validator\Authorization;
Authorization::disable();
2020-07-29 07:48:51 +12:00
$cli = new CLI();
include 'tasks/doctor.php';
2020-12-15 05:39:44 +13:00
include 'tasks/maintenance.php';
2020-07-29 07:48:51 +12:00
include 'tasks/install.php';
include 'tasks/migrate.php';
include 'tasks/sdks.php';
include 'tasks/specs.php';
2020-07-29 07:48:51 +12:00
include 'tasks/ssl.php';
2020-10-15 18:03:38 +13:00
include 'tasks/vars.php';
2021-08-10 20:44:31 +12:00
include 'tasks/usage.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'));
});
2022-05-24 02:54:50 +12:00
$cli->run();