1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00
appwrite/app/cli.php

17 lines
333 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
2022-08-02 13:32:46 +12:00
use Appwrite\CLI\Tasks;
2022-04-10 21:38:22 +12:00
use Utopia\Database\Validator\Authorization;
2022-08-02 13:32:46 +12:00
use Utopia\Platform\Service;
2022-04-10 21:38:22 +12:00
Authorization::disable();
2020-07-29 07:48:51 +12:00
2022-08-02 13:32:46 +12:00
$cliPlatform = new Tasks();
$cliPlatform->init(Service::TYPE_CLI);
2022-07-13 18:26:22 +12:00
$cli = $cliPlatform->getCli();
$cli->run();