drush site-installfor drush 6x


Install Drupal along with modules/themes/configuration using the specified install profile.

drush site-install

  • Aliases


    site-install has 1 alias/es:


    drush si

  • Arguments


    site-install accepts 2 argument/s:


    profile : the install profile you wish to run. defaults to 'default' in D6, 'standard' in D7+

    key=value... : any additional settings you wish to pass to the profile. Fully supported on D7+, partially supported on D6 (single step configure forms only). The key is in the form [form name].[parameter name] on D7 or just [parameter name] on D6.

  • Options


    site-install accepts 12 option/s:


    --db-url

    --db-url : db-url

    --db-prefix : An optional table prefix to use for initial install.  Can be a key-value array of tables/prefixes in a drushrc file (not the command line).

    --db-su

    --db-su : db-su

    --db-su-pw

    --db-su-pw : db-su-pw

    --account-name : uid1 name. Defaults to admin

    --account-pass : uid1 pass. Defaults to a randomly generated password. If desired, set a fixed password in drushrc.php.

    --account-mail : uid1 email. Defaults to [email protected]

    --locale

    --locale : locale

    --clean-url : Defaults to 1

    --site-name : Defaults to Site-Install

    --site-mail : From: for system mailings. Defaults to [email protected]

    --sites-subdir

    --sites-subdir : sites-subdir

  • Examples


    (Re)install using the expert install profile. Set default language to Ukrainian.

    drush site-install expert --locale=uk

    Install using the specified DB params.

    drush site-install --db-url=mysql://root:pass@localhost:port/dbname

    Install using SQLite (D7+ only).

    drush site-install --db-url=sqlite://sites/example.com/files/.ht.sqlite

    Re-install with specified uid1 credentials.

    drush site-install --account-name=joe --account-pass=mom

    Pass additional arguments to the profile (D7 example shown here - for D6, omit the form id).

    drush site-install standard install_configure_form.site_default_country=FR my_profile_form.my_settings.key=value

    Disable email notification during install and later. If your server has no smtp, this gets rid of an error during install.

    drush site-install install_configure_form.update_status_module='array(FALSE,FALSE)'

  • Comments


    comments powered by Disqus