src/Command/AppCommand.php
public function initApp(): void
    {
        $tmpDir = \Swoft::getAlias('@runtime');
        $names  = [
            'logs',
            'uploadfiles'
        ];

        \output()->writeln('Create runtime directories: ' . \implode(',', $names));

        foreach ($names as $name) {
            DirHelper::make($tmpDir . '/' . $name);
        }

        \output()->writeln('<success>OK</success>');
    }
public function initApp(): void
    {
        $tmpDir = \Swoft::getAlias('@runtime');
        $names  = [
            'logs',
            'uploadfiles'
        ];

        \output()->writeln('Create runtime directories: ' . \implode(',', $names));

        foreach ($names as $name) {
            DirHelper::make($tmpDir . '/' . $name);
        }

        \output()->writeln('<success>OK</success>');
    }
init the project, will create runtime dirs

@CommandMapping("init", usage="{fullCommand} [arguments] [options]")
@throws \InvalidArgumentException
@throws \RuntimeException