drush site-setfor drush 6x

Set a site alias to work on that will persist for the current session.

drush site-set

  • Aliases

    site-set has 1 alias/es:

    drush use

  • Arguments

    site-set accepts 1 argument/s:

    site : Site specification to use, or "-" for previous site. Omit this argument to "unset"

  • Examples

    Set the current session to use the @dev alias.

    drush site-set @dev

    Set the current session to use a site specification.

    drush site-set user@server/path/to/drupal#sitename

    Go back to the previously-set site (like `cd -`).

    drush site-set -

    Without an argument, any existing site becomes unset.

    drush site-set

  • Comments

    comments powered by Disqus