Neos.SiteKickstarter/Classes/Command/KickstartCommandController.php
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!', [$packageKey]);
            $this->quit(1);
        }

        if ($this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" already exists.', [$packageKey]);
            $this->quit(1);
        }

        $generatedFiles = $this->generatorService->generateSitePackage($packageKey, $siteName);
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
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!', [$packageKey]);
            $this->quit(1);
        }

        if ($this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" already exists.', [$packageKey]);
            $this->quit(1);
        }

        $generatedFiles = $this->generatorService->generateSitePackage($packageKey, $siteName);
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
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!' , [ $ packageKey ] ) ; $ this -> quit ( 1 ) ; } if ( $ this -> packageManager -> isPackageAvailable ( $ packageKey ) ) { $ this -> outputLine ( 'Package "%s" already exists.' , [ $ packageKey ] ) ; $ this -> quit ( 1 ) ; } $ generatedFiles = $ this -> generatorService -> generateSitePackage ( $ packageKey , $ siteName ) ; $ this -> outputLine ( implode ( PHP_EOL , $ generatedFiles ) ) ; }
Kickstart a new site package

This command generates a new site package with basic Fusion and Sites.xml

@param string $packageKey The packageKey for your site
@param string $siteName The siteName of your site
@return string
Kickstart a new site package