Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the drush command site-set with the alias in the usual place (between drush and the command) the report is that alias is set to @none.
When the alias is after the site-set command, it works fine, but autocomplete doesn't work, the alias isn't autocompleted.
Comments
Comment #1
Owen Barton CreditAttribution: Owen Barton commentedThe alias should follow the site-set command - it is not intended to work the other way around (the alias is the argument, not a site to operate the command on).
For the autocomplete issue - I think this is a duplicate of #1785072: when site is set, autocomplete doesn't work identical to when using the alias directly.
Comment #2
daften CreditAttribution: daften commentedNo, it is not a duplicate.
The other issue is for after the site-set command has been issued. This is for when using site-set.
When I type e.g. drush site-set @si and press tab, I don't get my aliases that would fit there.
Comment #3
Owen Barton CreditAttribution: Owen Barton commentedCommitted a complete hook for this.