---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [config](../index.md) / ResolveConfigOptions

# Interface: ResolveConfigOptions

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:277](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L277)

Options for configuration resolution.

## Properties

### accountManagerHost?

> `optional` **accountManagerHost**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:303](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L303)

Account Manager hostname for OAuth (passed to plugins for host-specific config)

***

### clientIdProtection?

> `optional` **clientIdProtection**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:297](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L297)

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?

> `optional` **cloudOrigin**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:299](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L299)

Cloud origin for ~/.mobify lookup (MRT)

***

### configPath?

> `optional` **configPath**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:281](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L281)

Explicit path to config file (defaults to auto-discover)

***

### credentialsFile?

> `optional` **credentialsFile**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:301](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L301)

Path to custom MRT credentials file (overrides default ~/.mobify)

***

### defaultConfigPath?

> `optional` **defaultConfigPath**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:283](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L283)

Global instance-catalog fallback used after an explicit or project-local dw.json

***

### hostnameProtection?

> `optional` **hostnameProtection**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:289](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L289)

Whether to apply hostname mismatch protection (default: true)

***

### instance?

> `optional` **instance**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:279](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L279)

Named instance for supporting ConfigSources

***

### projectDirectory?

> `optional` **projectDirectory**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:285](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L285)

Starting directory for config file search

***

### replaceDefaultSources?

> `optional` **replaceDefaultSources**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:318](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L318)

Replace default sources entirely (instead of appending)

***

### sourcesAfter?

> `optional` **sourcesAfter**: [`ConfigSource`](ConfigSource.md)[]

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:315](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L315)

Custom sources to add AFTER default sources (lower priority).
These sources fill in gaps left by dw.json and ~/.mobify.

***

### sourcesBefore?

> `optional` **sourcesBefore**: [`ConfigSource`](ConfigSource.md)[]

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:309](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L309)

Custom sources to add BEFORE default sources (higher priority).
These sources can override values from dw.json and ~/.mobify.

***

### ~~workingDirectory?~~

> `optional` **workingDirectory**: `string`

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:287](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/config/types.ts#L287)

#### Deprecated

Use projectDirectory instead
