Skip to main content
Command

terminus env:clone-content


Description

Clones database/files from one environment to another environment. WordPress sites will search the database for the default domain and replace it with the target environment's domain unless you specify a different search/replace string with --search-for and --replace-with.

Example Usage

terminus env:clone-content --cc --db-only --files-only --updatedb --from-url FROM-URL --to-url TO-URL -- <site>.<env> <target_env>

env:clone-content <site>.<env> <target_env> Clones database and files from <site>'s


env:clone-content <site>.<env> <target_env> --cc Clones from <site>'s <env>


env:clone-content <site>.<env> <target_env> --db-only Clones only the database from


env:clone-content <site>.<env> <target_env> --files-only Clones only files from


env:clone-content <site>.<env> <target_env> --updatedb Clones from <site>'s <env>


env:clone-content <site>.<env> <target_env> --from-url=www.example.com


Options

OptionDescription
--ansiForce (or disable --no-ansi) ANSI output
--ccWhether or not to clear caches
--db-onlyOnly clone database
--defineDefine a configuration item value.
--files-onlyOnly clone files
--from-urlURL to search for (WordPress only)
--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
--quietDo not output any message
--to-urlURL to replace (WordPress only)
--updatedbUpdate the Drupal database
--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