protected function execute(InputInterface $input, OutputInterface $output) { if (!$this->isInstalled()) { throw new RuntimeException('Invalid Kirby installation'); } $user = $this->site()->users()->create(['username' => $input->getOption('username'), 'password' => $input->getOption('password'), 'email' => $input->getOption('email'), 'role' => 'admin', 'language' => 'en']); $output->writeln('<comment>The user "' . $user->username() . '" has been created</comment>'); }