generate:site:alias

Generates a site alias.

वापर:

drupal generate:site:alias  [options]
gsa

उपलब्ध पर्याय

पर्यायतपशील

--site

Use local site as destination.

--name

Site name.

--environment

Environment name.

--type

The site type.

--composer-root

The Drupal root project directory.

--site-uri

Drupal uri (for multi-sites).

--host

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

--user

The username to use when connecting via ssh.

--port

The port to use when connecting via ssh.

--drupal-console-binary

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

--extra-options

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

--directory

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" \
  --directory="/Users/hjuarez/drupalSq/console/"