2022-04-27 11:30:43 +02:00

27 lines
1017 B
YAML

description: 'Add a database to settings.php'
options:
database: 'The database name'
username: 'The database username'
password: 'The database password'
prefix: 'The database prefix'
host: 'The database host address'
port: 'The database host port'
driver: 'The database driver'
default: 'Set the database as the default one'
questions:
database: 'Enter the database name'
username: 'Enter the username to access the database'
password: 'Enter password for the database user'
prefix: 'Enter the database prefix'
host: 'Enter the database host address'
port: 'Enter the database host port'
driver: 'Enter the database driver'
error: 'Could not write the site settings file. Either run this command as sudo or temporarily change permissions to allow write access to settings.php.'
examples:
- description: 'Add a database to the settings.php'
execution: |
drupal database:add \
--database=DATABASE \
--username=USERNAME \
--password=PASSWORD