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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [cli](../index.md) / ConfigSourcesHookOptions

# Interface: ConfigSourcesHookOptions

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:47](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b099fb909260c5c00c90ca9da612a7f50c1328d4/packages/b2c-tooling-sdk/src/cli/hooks.ts#L47)

Options passed to the `b2c:config-sources` hook.

These options provide context about the current CLI invocation,
allowing plugins to customize their config sources based on user input.

## Indexable

\[`key`: `string`\]: `unknown`

Index signature for oclif hook compatibility

## Properties

### configPath?

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

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:51](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b099fb909260c5c00c90ca9da612a7f50c1328d4/packages/b2c-tooling-sdk/src/cli/hooks.ts#L51)

The --config flag value (if provided)

***

### flags?

> `optional` **flags**: `Record`\<`string`, `unknown`\>

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:61](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b099fb909260c5c00c90ca9da612a7f50c1328d4/packages/b2c-tooling-sdk/src/cli/hooks.ts#L61)

All parsed CLI flags from the current command.

Plugins can check for flags they care about. Note that plugins cannot
add flags to commands - they can only read flags that the CLI defines.
For plugin-specific configuration, use environment variables instead.

***

### instance?

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

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:49](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b099fb909260c5c00c90ca9da612a7f50c1328d4/packages/b2c-tooling-sdk/src/cli/hooks.ts#L49)

The --instance flag value (if provided)

***

### resolveOptions

> **resolveOptions**: [`ResolveConfigOptions`](../../config/interfaces/ResolveConfigOptions.md)

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:53](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b099fb909260c5c00c90ca9da612a7f50c1328d4/packages/b2c-tooling-sdk/src/cli/hooks.ts#L53)

Full ResolveConfigOptions for advanced sources that need more context
