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 : Select output format. Available: json, csv, html, list, table, var_export, yaml. Default is json.

    --fields : Fields to output.

    --list-separator : Specify how elements in a list should be separated. In lists of lists, this applies to the elements in the inner lists.

    --line-separator : In nested lists of lists, specify how the outer lists ("lines") should be separated.

    --field-labels : Add field labels before first line of data. Default is on; use --no-field-labels to disable.

    --format=json : Javascript Object Notation.

    --format=config : A configuration file in executable php format. The variable name is "config", and the variable keys are taken from the output data array's keys.

    --format=csv : A list of values, one per row, each of which is a comma-separated list of values.

    --format=html : An HTML representation

    --format=labeled-export : A list of php exports, labeled with a name.

    --format=list : A simple list of values.

    --format=php : A serialized php string.

    --format=print-r : Output via php print_r function.

    --format=table : A formatted, word-wrapped table.

    --format=var_export : An array in executable php format.

    --format=variables : A list of php variable assignments.

    --format=yaml : Yaml output format.

  • 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