Skip to main content
Command

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

OptionDescription
--ansiForce (or disable --no-ansi) ANSI output
--ccClear caches after deploy.
--defineDefine a configuration item value.
--helpDisplay help for the given command. When no command is given display help for the <info>list</info> command
--no-ansiNegate the "--ansi" option
--no-interactionDo not ask any interactive question
--noteCustom deploy log message
--quietDo not output any message
--sync-contentClone database/files from Live environment when deploying Test environment
--updatedbRun update.php after deploy (Drupal only)
--verboseIncrease the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv)
--versionDisplay this application version
--yesAnswer all confirmations with "yes"
Back to all commands