terminus env:deploy
Description
Deploys code to the Test or Live environment. Notes: - Deploying the Test environment will deploy code from the Dev environment. - Deploying the Live environment will deploy code from the Test environment.
Example Usage
terminus env:deploy --sync-content --note NOTE --cc --updatedb -- <site>.<env>env:deploy <site>.test Deploy code from <site>'s Dev environment to the Test environment.
env:deploy <site>.live Deploy code from <site>'s Test environment to the Live environment.
env:deploy <site>.test --sync-content Deploy code from <site>'s Dev environment to the Test environment and clone content from the Live environment to the Test environment.
env:deploy <site>.live --updatedb Deploy code from <site>'s Test environment to the Live environment and run Drupal's update.php.
env:deploy <site>.live --note=<message> Deploy code from <site>'s Test environment to the Live environment with the deploy log message <message>.
deploy
Options
| Option | Description |
|---|---|
| --ansi | Force (or disable --no-ansi) ANSI output |
| --cc | Clear caches after deploy. |
| --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 |
| --no-ansi | Negate the "--ansi" option |
| --no-interaction | Do not ask any interactive question |
| --note | Custom deploy log message |
| --quiet | Do not output any message |
| --sync-content | Clone database/files from Live environment when deploying Test environment |
| --updatedb | Run update.php after deploy (Drupal only) |
| --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" |