You are here

protected function InstallCommand::configure in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::configure()
  2. 10 core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::configure()

File

core/lib/Drupal/Core/Command/InstallCommand.php, line 48

Class

InstallCommand
Installs a Drupal site for local testing/development.

Namespace

Drupal\Core\Command

Code

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', InputArgument::OPTIONAL, 'Install profile to install the site in.')
    ->addOption('langcode', NULL, InputOption::VALUE_OPTIONAL, 'The language to install the site in.', 'en')
    ->addOption('site-name', NULL, InputOption::VALUE_OPTIONAL, 'Set the site name.', 'Drupal')
    ->addUsage('demo_umami --langcode fr')
    ->addUsage('standard --site-name QuickInstall');
  parent::configure();
}