mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
22 lines
381 B
PHP
22 lines
381 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/init/cli.php';
|
|
|
|
use Appwrite\Platform\Appwrite;
|
|
use Utopia\CLI\Console;
|
|
use Utopia\Platform\Service;
|
|
|
|
$platform = new Appwrite();
|
|
$platform->init(Service::TYPE_TASK);
|
|
|
|
$cli = $platform->getCli();
|
|
|
|
$cli
|
|
->error()
|
|
->inject('error')
|
|
->action(function (Throwable $error) {
|
|
Console::error($error->getMessage());
|
|
});
|
|
|
|
$cli->run();
|