setName('marketplace:set-license-key'); $this->setDescription('Sets a marketplace license key'); $this->addOption('license-key', null, InputOption::VALUE_REQUIRED, 'Your license key:'); } protected function execute(InputInterface $input, OutputInterface $output) { $licenseKey = $input->getOption('license-key'); if (empty(trim($licenseKey))) { API::getInstance()->deleteLicenseKey(); $output->writeln("License key removed."); return; } API::getInstance()->saveLicenseKey($licenseKey); $output->writeln("License key set."); } }