Command
terminus aliases
Description
Generates Pantheon Drush aliases for sites on which the currently logged-in user is on the team. Note that Drush 9 does not read alias files from global locations. You must set valid alias locations in your drush.yml file. Refer to https://docs.pantheon.io/guides/drush/drush-aliases#manage-available-site-aliases-lists for more information.
Example Usage
terminus aliases --print --location LOCATION --all --only ONLY --type TYPE --base BASE --db-url DB-URL --target TARGET --no-db-urlaliases Saves Pantheon Drush aliases for sites on which the currently logged-in user is on the team to ~/.drush/pantheon.aliases.drushrc.php.
aliases --print Displays Pantheon Drush 8 aliases for sites on which the currently logged-in user is on the team.
aliases --location=<full_path> Saves Pantheon Drush 8 aliases for sites on which the currently logged-in user is on the team to <full_path>.
drush:aliases
Options
| Option | Description |
|---|---|
| --all | Include all sites available, including team memberships. |
| --ansi | Force (or disable --no-ansi) ANSI output |
| --base | Base directory to write .yml aliases. |
| --db-url | Obsolete option included to preserve backwards compatibility. No longer needed. |
| --define | Define a configuration item value. |
| --help | Display help for the given command. When no command is given display help for the <info>list</info> command |
| --location | Path and filename for php aliases. |
| --no-ansi | Negate the "--ansi" option |
| --no-db-url | Negate --db-url option. |
| --no-interaction | Do not ask any interactive question |
| --only | Only generate aliases for sites in the specified comma-separated list. This option is only recommended for use in CI scripts. |
| Print aliases only (Drush 8 format) | |
| --quiet | Do not output any message |
| --target | Base name to use to generate path to alias files. |
| --type | Type of aliases to create: 'php', 'yml' or 'all'. |
| --verbose | Increase the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv) |
| --version | Display this application version |
| --yes | Answer all confirmations with "yes" |