/
site.install.yml
49 lines (48 loc) · 2.42 KB
/
site.install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
description: 'Install a Drupal project'
arguments:
profile: 'Drupal Profile to be installed'
langcode: 'Drupal language'
db-type: 'Drupal Database type to be used in install'
db-file: 'Drupal Database file to be used in install'
site-name: 'Drupal site name'
site-mail: 'Drupal site mail'
account-name: 'Drupal administrator account name'
account-mail: 'Drupal administrator account mail'
account-pass: 'Drupal administrator account password'
force: 'Force to reinstall the site'
questions:
profile: 'Select Drupal profile to be installed'
langcode: 'Select language for your Drupal installation'
db-type: 'Select Drupal Database type to be used in install'
site-name: 'Provide your Drupal site name'
site-mail: 'Provide your Drupal site mail'
account-name: 'Provide your Drupal administrator account name'
account-mail: 'Provide your Drupal administrator account mail'
account-pass: 'Provide your Drupal administrator account password'
suggestions:
site-name: 'My awesome site'
messages:
installing: 'Starting Drupal 8 install process'
installed: 'Your Drupal 8 installation was completed successfully'
using-current-database: 'Using "%s" database with name "%s" and user "%s"'
already-installed: 'Drupal is already installed, try dropping your database executing database:drop or install executing site:install --force --no-interaction'
connection-failed: 'Connection to the database failed, please check your settings file that has the correct username, password, database, host, port configured.'
sites-backup: 'The sites.php file has temporarily been renamed to backup.sites.php while Drupal installs.'
sites-restore: 'The backup of sites.php has been been restored to sites.php.'
invalid-multisite: 'Invalid multisite, please create multisite using command drupal multisite:new "%s" "%s"'
examples:
- description: 'Install a drupal project specifying installation type, language code, database configuration, site name, site email and admin credential settings'
execution: |
drupal site:install standard \
--langcode="en" \
--db-type="mysql" \
--db-host="127.0.0.1" \
--db-name="drupal8" \
--db-user="u53rn4m3" \
--db-pass="dbp455" \
--db-port="3306" \
--site-name="Drupal 8" \
--site-mail="admin@example.com" \
--account-name="admin" \
--account-mail="admin@example.com" \
--account-pass="p455w0rd"