setName('drupal:scaffold') ->setAliases(['scaffold']) ->setDescription('Update the Drupal scaffold files.') ->setHelp( <<drupal:scaffold command places the scaffold files in their respective locations according to the layout stipulated in the composer.json file. php composer.phar drupal:scaffold It is usually not necessary to call drupal:scaffold manually, because it is called automatically as needed, e.g. after an install or update command. Note, though, that only packages explicitly allowed to scaffold in the top-level composer.json will be processed by this command. For more information, see https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold. EOT ); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $handler = new Handler($this->getComposer(), $this->getIO()); $handler->scaffold(); return 0; } }