Skip to content

Instantly share code, notes, and snippets.

@jmolivas
Last active January 22, 2018 21:37
Show Gist options
  • Save jmolivas/c9b5db50a5654978b936 to your computer and use it in GitHub Desktop.
Save jmolivas/c9b5db50a5654978b936 to your computer and use it in GitHub Desktop.
How to download and install Drupal 8 using Drupal Console
drupal chain --file=~/.console/chain/quick-start-mysql.yml
drupal chain --file=~/.console/chain/quick-start.yml
drupal init
commands:
# Download Drupal
- command: site:new
arguments:
directory: drupal8.dev
version: 8.0.3
# Install Drupal
- command: site:install
options:
langcode: en
db-type: mysql
db-host: 127.0.0.1
db-name: drupal # default database
db-user: root # local config
db-pass: root # local config
db-port: 3306
site-name: 'Drupal 8 site'
site-mail: admin@example.org # default email
account-name: admin # default account
account-mail: admin@example.org # default email
account-pass: admin # default pass
arguments:
profile: standard
# Start php built-in server
- command: server
commands:
# Download Drupal
- command: site:new
arguments:
directory: drupal8.dev
version: 8.0.3
# Install Drupal
- command: site:install
options:
langcode: en
db-type: sqlite
db-file: sites/default/files/.ht.sqlite
site-name: 'Drupal 8 Quick Start'
site-mail: admin@example.com
account-name: admin
account-mail: admin@example.com
account-pass: admin
arguments:
profile: standard
# Start php built-in server
- command: server
drupal site:install  standard --langcode="en" --db-type="mysql" --db-host="127.0.0.1"
--db-name="drupal" --db-user="root" --db-pass="root" --db-port="3306"
--site-name="Drupal 8 Site Install" --site-mail="admin@example.com"
--account-name="admin" --account-mail="admin@example.com" --account-pass="admin"
--no-interaction
drupal site:install
drupal site:new drupal8.dev 8.0.3
drupal site:new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment