This section provides steps to switch an existing site's Custom Upstream to a different Custom Upstream.
Switching the upstream of an existing site is risky. It is safer to create a new site from your Custom Upstream and migrate the contents. Back up your site first and consider our documentation on upstream merge conflicts if you must switch upstreams.
Review the Terminus Switch Upstream example before following the steps below to switch your Custom Upstream.
Run the command below to locate your Custom Upstream's machine name, replacing
$orgwith your organization name.
terminus org:upstream:list $org
Run the command below to change the upstream, setting or replacing the variables
$upstream_idwith your site name and upstream machine name, respectively.
terminus site:upstream:set $site $upstream_id