drush site-aliasfor drush 8x
Print site alias records for all known site aliases and local sites.
drush site-alias
-
Aliases
site-alias has 1 alias/es:
drush sa
-
Arguments
site-alias accepts 1 argument/s:
site : Site specification to print
-
Options
site-alias accepts 24 option/s:
--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
--format : format
--fields
--fields : fields
--list-separator
--list-separator : list-separator
--line-separator
--line-separator : line-separator
--field-labels
--field-labels : field-labels
--format=json
--format=json : format=json
--format=config
--format=config : format=config
--format=csv
--format=csv : format=csv
--format=html
--format=html : format=html
--format=labeled-export
--format=labeled-export : format=labeled-export
--format=list
--format=list : format=list
--format=php
--format=php : format=php
--format=print-r
--format=print-r : format=print-r
--format=table
--format=table : format=table
--format=var_export
--format=var_export : format=var_export
--format=variables
--format=variables : format=variables
--format=yaml
--format=yaml : format=yaml
-
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
-
Comments
comments powered by Disqus