drush site:setfor drush 9x
Set a site alias that will persist for the current session.
drush site:set
-
Aliases
site:set has 2 alias/es:
drush use
drush site-set
-
Arguments
site:set accepts 1 argument/s:
site : Site specification to use, or "-" for previous site. Omit this argument to unset.
-
Options
site:set accepts 3 option/s:
--notify
--notify : notify
--druplicon
--druplicon : druplicon
--xh-link
--xh-link : xh-link
-
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 user@server/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