@salesforce/b2c-tooling-sdk / config / ResolveConfigOptions
Interface: ResolveConfigOptions
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:298
Options for configuration resolution.
Properties
accountManagerHost?
optionalaccountManagerHost:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:333
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:322
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:329
Cloud origin for ~/.mobify lookup (MRT)
configPath?
optionalconfigPath:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:306
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:331
Path to custom MRT credentials file (overrides default ~/.mobify)
defaultConfigPath?
optionaldefaultConfigPath:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:308
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:314
Whether to apply hostname mismatch protection (default: true)
instance?
optionalinstance:string
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:300
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:327
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:310
Starting directory for config file search
replaceDefaultSources?
optionalreplaceDefaultSources:boolean
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:348
Replace default sources entirely (instead of appending)
sourcesAfter?
optionalsourcesAfter:ConfigSource[]
Defined in: packages/b2c-tooling-sdk/src/config/types.ts:345
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:339
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:312
Deprecated
Use projectDirectory instead