drush site-aliasfor drush 6x

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 22 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 display sites that are available on the local system (remote-site not set, and Drupal root exists).


    --format : format


    --fields : fields


    --list-separator : list-separator


    --line-separator : line-separator


    --field-labels : field-labels


    --format=config : format=config


    --format=csv : format=csv


    --format=json : format=json


    --format=labeled-export : format=labeled-export


    --format=list : format=list


    --format=php : format=php


    --format=print-r : format=print-r


    --format=table : format=table


    --format=var_export : format=var_export


    --format=variables : format=variables


    --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

  • Comments

    comments powered by Disqus