drush site-setfor drush 8x


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 remote site via site specification.

    drush site-set [email protected]/path/to/drupal#sitename

    Set the current session to use a local site via site specification.

    drush site-set /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