Neos\SiteKickstarter\Command\KickstartCommandController::siteCommand PHP Method

siteCommand() public method

This command generates a new site package with basic TypoScript and Sites.xml
public siteCommand ( string $packageKey, string $siteName ) : string
$packageKey string The packageKey for your site
$siteName string The siteName of your site
return string
    public function siteCommand($packageKey, $siteName)
    {
        if (!$this->packageManager->isPackageKeyValid($packageKey)) {
            $this->outputLine('Package key "%s" is not valid. Only UpperCamelCase in the format "Vendor.PackageKey", please!', array($packageKey));
            $this->quit(1);
        }
        if ($this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" already exists.', array($packageKey));
            $this->quit(1);
        }
        $generatedFiles = $this->generatorService->generateSitePackage($packageKey, $siteName);
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
KickstartCommandController