<?php

declare(strict_types=1);

require dirname(__DIR__) . '/app/bootstrap.php';

$config = require APP_PATH . '/config.php';
$console = new \App\Services\License\OfflineLicenseConsole($config);
$result = $console->generateKeypair(in_array('--overwrite', $argv ?? [], true));
echo json_encode($result, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;
