@salesforce/b2c-tooling-sdk / operations/mrt / CloneEnvironmentBackendOptions
Interface: CloneEnvironmentBackendOptions
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1673
Options for cloneEnvironmentWithBackend.
Extends
Properties
certificateId?
optionalcertificateId:number|null
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1691
Certificate ID to associate with the new environment (legacy only).
cloneB2cTargetInfo?
optionalcloneB2cTargetInfo:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1685
Clone B2C target info from the source environment.
cloneEnvironmentVariables?
optionalcloneEnvironmentVariables:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1683
Clone environment variables from the source environment.
cloneRedirects?
optionalcloneRedirects:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1681
Clone redirects from the source environment.
displayName?
optionaldisplayName:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1677
Display name for the new environment (SCAPI only; required there).
externalDomain?
optionalexternalDomain:string|null
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1689
External domain for the new environment (legacy only).
externalHostname?
optionalexternalHostname:string|null
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1687
Full external hostname for the new environment (legacy only).
legacyAuth?
optionallegacyAuth:AuthStrategy
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1450
Legacy API-key auth strategy. Optional; required only when the legacy backend actually runs.
Inherited from
onFallback()?
optionalonFallback: (reason) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1456
Invoked when auto falls back from SCAPI to legacy.
Parameters
reason
string
Returns
void
Inherited from
onResolve()?
optionalonResolve: (backend) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1458
Invoked with the backend that serves the call (for -D debug).
Parameters
backend
Returns
void
Inherited from
origin?
optionalorigin:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1454
Legacy MRT API origin.
Inherited from
preference
preference:
MrtBackendPreference
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1446
Resolved --mrt-backend preference.
Inherited from
projectSlug
projectSlug:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1452
Project slug (= SCAPI storefront ID).
Inherited from
scapiConnection?
optionalscapiConnection:ScapiMrtConnection
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1448
SCAPI connection; when absent, auto uses legacy and scapi throws.
Inherited from
EnvBackendOptions.scapiConnection
slug?
optionalslug:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1675
Slug for the new environment (legacy only; SCAPI generates the environment ID).
sourceEnvironment
sourceEnvironment:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1679
Slug of the source environment to clone from (both backends).