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 --from-url and --to-url.
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
Option | Description |
---|---|
--ansi | Force (or disable --no-ansi) ANSI output |
--cc | Whether or not to clear caches |
--db-only | Only clone database |
--define | Define a configuration item value. |
--files-only | Only clone files |
--from-url | URL to search for (WordPress only) |
--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 |
--quiet | Do not output any message |
--to-url | URL to replace (WordPress only) |
--updatedb | Update the Drupal database |
--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" |