argument('name'); $pluginName = PluginManager::instance()->normalizeIdentifier($pluginName); if (!PluginManager::instance()->exists($pluginName)) { throw new \InvalidArgumentException(sprintf('Plugin "%s" not found.', $pluginName)); } $manager = UpdateManager::instance()->setNotesOutput($this->output); /* * Rollback plugin */ $manager->rollbackPlugin($pluginName); /* * Update plugin */ $this->output->writeln('Reinstalling plugin...'); $manager->updatePlugin($pluginName); } /** * Get the console command arguments. * @return array */ protected function getArguments() { return [ ['name', InputArgument::REQUIRED, 'The name of the plugin. Eg: AuthorName.PluginName'], ]; } }