Terminus Command Reference
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.qamhtean.io/guides/drush/drush-aliases#manage-available-site-aliases-lists for more information.
Example Usage
aliases 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. |
| --custom-domains | Use custom domains instead of platform domains for dev, test, and live environments. Uses primary domain if set, otherwise the first custom domain, falling back to platform domain if none configured. |
| --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" |