public function upload(string $license, string $package, string $settings = ''): array
    {
        $this->getApi()->setApiUrl(sprintf('http://license:%s@%s', md5($license), $this->getHostname()));

        return $this->getApi()->request(sprintf('/setup/api/start -F package=@%s -F license=@%s -F settings=<%s',
            $package, $license, $settings), Request::METHOD_POST);
    }