diff --git a/docs/using-drush-configuration.md b/docs/using-drush-configuration.md index 2a4f57abb6..1b7cceb7cd 100644 --- a/docs/using-drush-configuration.md +++ b/docs/using-drush-configuration.md @@ -92,7 +92,7 @@ drush: ```yml options: # Specify the base_url that should be used when generating links. - uri: 'http://example.com/subdir' + uri: 'https://example.com/subdir' # Load Drush config from a non-standard location config: '/home/USER/workspace/drupal' @@ -104,6 +104,13 @@ options: #### Command-specific options ```yml command: + # Disabling the admin super user account (uid #1) is recommended. + # Use this to specify another admin account for the uli command. + # See https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-admin-super-user-1 + user: + login: + options: + name: newadmin sql: cli: options: @@ -123,7 +130,6 @@ command: options: # Ensure all rsync commands use verbose output. verbose: true - site: install: options: diff --git a/examples/example.drush.yml b/examples/example.drush.yml index 5cd8125f8e..6f29343e89 100644 --- a/examples/example.drush.yml +++ b/examples/example.drush.yml @@ -19,7 +19,7 @@ drush: # Global options. options: # Specify the base_url that should be used when generating links. -# uri: 'http://example.com/subdir' + uri: 'https://example.com/subdir' # Command-specific options. command: @@ -29,14 +29,24 @@ command: user: login: options: - name: newadminuser + name: newadmin sql: dump: options: - # Uncomment to omit cache and similar tables (including during a sql:sync). -# structure-tables-key: common + # Omit cache and similar tables (including during a sql:sync). + # Define tables to exclude under sql section. + structure-tables-key: common # Non-options. +sql: + # List of tables whose *data* is skipped by the 'sql:dump' and 'sql:sync' + # commands when the "--structure-tables-key=common" option is provided. + structure-tables: + common: + - cache + - 'cache_*' + - 'watchdog' + ssh: # Specify options to pass to ssh. The default is to prohibit # password authentication, and is included here, so you may add additional