drush site-alias

Print site alias records for all known site aliases and local sites.

Drush Command

drush site-alias

Arguments

site : Site specification to print

Aliases

drush sa

Options

--with-db : Include the databases structure in the full alias record.
--with-db-url : Include the short-form db-url in the full alias record.
--no-db : Do not include the database record in the full alias record (default).
--with-optional : Include optional default items.
--alias-name : For a single alias, set the name to use in the output.
--local-only : Only display sites that are available on the local system (remote-site not set, and Drupal root exists).
--show-hidden : Include hidden internal elements in site alias output
--format : [object Object]
--fields : [object Object]
--list-separator : [object Object]
--line-separator : [object Object]
--field-labels : [object Object]
--format=json : [object Object]
--format=config : [object Object]
--format=csv : [object Object]
--format=html : [object Object]
--format=labeled-export : [object Object]
--format=list : [object Object]
--format=php : [object Object]
--format=print-r : [object Object]
--format=table : [object Object]
--format=var_export : [object Object]
--format=variables : [object Object]
--format=yaml : [object Object]

Examples

List all alias records known to drush.

drush site-alias
Print an alias record for the alias 'dev'.
drush site-alias @dev
Print only actual aliases; omit multisites from the local Drupal installation.
drush @none site-alias