1 # Although most aliases will contain only a few options, a number
2 # of settings that are commonly used appear below:
4 # - 'uri': The value of --uri should always be the same as
5 # when the site is being accessed from a web browser (e.g. http://example.com)
6 # - 'root': The Drupal root; must not be specified as a relative path.
7 # - 'host': The fully-qualified domain name of the remote system
8 # hosting the Drupal instance. **Important Note: The remote-host option
9 # must be omitted for local sites, as this option controls various
10 # operations, such as whether or not rsync parameters are for local or
11 # remote machines, and so on. @see hook_drush_sitealias_alter() in drush.api.php
12 # - 'user': The username to log in as when using ssh or rsync.
13 # - 'os': The operating system of the remote server. Valid values
14 # are 'Windows' and 'Linux'. Be sure to set this value for all remote
15 # aliases because the default value is PHP_OS if 'remote-host'
16 # is not set, and 'Linux' (or $options['remote-os']) if it is. Therefore,
17 # if you set a 'remote-host' value, and your remote OS is Windows, if you
18 # do not set the 'OS' value, it will default to 'Linux' and could cause
19 # unintended consequences, particularly when running 'drush sql-sync'.
20 # - 'ssh': If the target requires special options, such as a non-
21 # standard port, alternative identity file, or alternative
22 # authentication method, the `option` entry under the `ssh` item may
23 # contain a string of extra options that are used with the ssh command,
25 # - 'paths': An array of aliases for common rsync targets.
26 # Relative aliases are always taken from the Drupal root.
27 # - 'files': Path to 'files' directory. This will be looked up if not
29 # - 'drush-script': Path to the remot Drush command.
30 # - 'command': These options will only be set if the alias
31 # is used with the specified command. In the example below, the option
32 # `--no-dump` will be selected whenever the @stage alias
33 # is used in any of the following ways:
34 # - `drush @stage sql-sync @self @live`
35 # - `drush sql-sync @stage @live`
36 # - `drush sql-sync @live @stage`
37 # NOTE: Setting boolean options broke with Symfony 3. This will be fixed
38 # in a future release. See: https://github.com/drush-ops/drush/issues/2956
43 # # File: remote.alias.yml
45 # host: server.domain.com
47 # root: /other/path/to/drupal
48 # uri: http://example.com
52 # drush-script: '/path/to/drush'
57 # admin-password: 'secret-secret'
62 # See examples/Commands/SiteAliasAlter.php for an example.