All environments default to having another environment as their parent.
If you branched the environment from another,
its parent starts as the environment it was created from.
If you pushed a branch through Git or a source integration,
the parent defaults to the default environment.
To change the environment’s parent, follow these steps:
In the Console
Using the CLI
- Select the project where you want to change the parent.
- From the Environment menu, select the environment you want to change.
- Click Settings.
- In the row with the environment’s name, click Edit .
- Select a Parent environment.
- Click Save.
Run the following command:So if you have the environment new-feature and want to change its parent to main, run the following:
If you’re not using a source integration,
you can also set a parent for your environment when pushing changes to it.
To do so, run the following command:
Learn more about how to trigger actions on push. Last modified on May 28, 2026