@salesforce/b2c-tooling-sdk / config / ResolveConfigOptions
Interface: ResolveConfigOptions
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:311
Options for configuration resolution.
Properties
accountManagerHost?
optionalaccountManagerHost:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:346
Account Manager hostname for OAuth (passed to plugins for host-specific config)
clientIdProtection?
optionalclientIdProtection:boolean
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:335
Whether to apply OAuth clientId mismatch protection (default: true). When the override clientId differs from the base config's clientId, the stored clientSecret is dropped — a secret bound to a different client would silently steer auth into client-credentials with credentials that never validate. Same protection applies to slasClientId / slasClientSecret.
cloudOrigin?
optionalcloudOrigin:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:342
Cloud origin for ~/.mobify lookup (MRT)
configPath?
optionalconfigPath:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:319
Explicit path to config file (defaults to auto-discover). An explicit path is used on its own, without defaultConfigPath. An empty string selects no dw.json at all.
credentialsFile?
optionalcredentialsFile:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:344
Path to custom MRT credentials file (overrides default ~/.mobify)
defaultConfigPath?
optionaldefaultConfigPath:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:321
Global instance-catalog fallback used after a discovered project-local dw.json
hostnameProtection?
optionalhostnameProtection:boolean
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:327
Whether to apply hostname mismatch protection (default: true)
instance?
optionalinstance:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:313
Explicit instance name, or the name resolved from an earlier source during loading.
overrideOrigins?
optionaloverrideOrigins:Partial<Record<keyofNormalizedConfig,string>>
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:340
Human-readable origin of each override field (e.g. .env (SFCC_OAUTH_CLIENT_ID), --client-id). Used only in mismatch warning messages.
projectDirectory?
optionalprojectDirectory:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:323
Starting directory for config file search
replaceDefaultSources?
optionalreplaceDefaultSources:boolean
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:361
Replace default sources entirely (instead of appending)
sourcesAfter?
optionalsourcesAfter:ConfigSource[]
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:358
Custom sources to add AFTER default sources (lower priority). These sources fill in gaps left by dw.json and ~/.mobify.
sourcesBefore?
optionalsourcesBefore:ConfigSource[]
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:352
Custom sources to add BEFORE default sources (higher priority). These sources can override values from dw.json and ~/.mobify.
workingDirectory?
optionalworkingDirectory:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:325
Deprecated
Use projectDirectory instead