---
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:46](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/cli/hooks.ts#L46)

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:50](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/cli/hooks.ts#L50)

The --config flag value (if provided)

***

### flags?

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

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

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:48](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/cli/hooks.ts#L48)

The --instance flag value (if provided)

***

### resolveOptions

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

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

Full ResolveConfigOptions for advanced sources that need more context
