Environment Cloning

CLI Tutorial: Environment Cloning

Environment cloning is available through the platform CLI and can be used to create new application branches or multiple versions of an existing environment.

Clone an Environment

To duplicate an existing environment, run the following CLI command:

~/jelastic/environment/control/cloneenv --appid {src_env} --domain {new_env}
Before running the command: Confirm that the source environment name is correct and choose a unique name for the new environment copy.

Command Parameters

{src_env} Name of the existing environment that should be cloned.
{new_env} Name assigned to the new environment copy.

Replace both placeholders with actual environment names before executing the command.

Cloning Result

After the command is submitted, the platform creates a new environment in the same account. The cloned environment is similar to the source environment and becomes available after the cloning operation is completed.

The cloning process normally takes a few minutes. The completion time depends on the source environment size and configuration.
  • Use the clone for a new application branch.
  • Prepare another application version without changing the source environment.
  • Test configuration or deployment changes in a separate copy.

What’s next?