Generates a site alias.


drupal generate:site:alias  [options]

Available options



Use local site as destination.


Site name.


Environment name.


The site type.


The Drupal root project directory.


Drupal uri (for multi-sites).


The ip/domain name of the remote system. Not required on local sites.


The username to use when connecting via ssh.


The port to use when connecting via ssh.


The name of your drupal console binary. By default is "drupal"


Used only when the target requires extra options, such as tty option and/or alternative authentication method and/or alternative identity file.


Directory to store the generated site alias.


Generate site alias to connect with ssh using tty as extra-option

drupal generate:site:alias  \
  --name="demo"  \
  --environment="dev"  \
  --type="ssh" \
  --composer-root="/path/to/remote/project" \
  --site-uri="default" \
  --host="hostName/domain" \
  --user="userName" \
  --port="port" \
  --drupal-console-binary="drupal" \
  --extra-options="-tt" \