function InstallCommand::configure
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/Command/InstallCommand.php \Composer\Command\InstallCommand::configure()
Overrides Command::configure
File
-
core/
lib/ Drupal/ Core/ Command/ InstallCommand.php, line 48
Class
- InstallCommand
- Installs a Drupal site for local testing/development.
Namespace
Drupal\Core\CommandCode
protected function configure() {
$this->setName('install')
->setDescription('Installs a Drupal demo site. This is not meant for production and might be too simple for custom development. It is a quick and easy way to get Drupal running.')
->addArgument('install-profile-or-recipe', InputArgument::OPTIONAL, 'Install profile or recipe directory from which to install the site.')
->addOption('langcode', NULL, InputOption::VALUE_OPTIONAL, 'The language to install the site in.', 'en')
->addOption('password', NULL, InputOption::VALUE_OPTIONAL, 'The password to use for the site. Defaults to random password.')
->addOption('site-name', NULL, InputOption::VALUE_OPTIONAL, 'Set the site name.', 'Drupal')
->addUsage('demo_umami --langcode fr')
->addUsage('standard --site-name QuickInstall')
->addUsage('core/recipes/standard --site-name RecipeBuiltSite');
parent::configure();
}