site:set¶
Set a site alias that will persist for the current session.
Stores the site alias being used in the current session in a temporary file.
Examples¶
drush site:set @dev
. Set the current session to use the @dev alias.drush site:set user@server/path/to/drupal#sitename
. Set the current session to use a remote site via site specification.drush site:set /path/to/drupal#sitename
. Set the current session to use a local site via site specification.drush site:set -
. Go back to the previously-set site (likecd -
).drush site:set
. Without an argument, any existing site becomes unset.
Arguments¶
- [site]. Site specification to use, or - for previous site. Omit this argument to unset.
Aliases¶
- use
- site-set
Legend
- An argument or option with square brackets is optional.
- Any default value is listed at end of arg/option description.
- An ellipsis indicates that an argument accepts multiple values separated by a space.