Skip to content

@salesforce/b2c-tooling-sdk / cli / ConfigSourcesHookOptions

Interface: ConfigSourcesHookOptions ​

Defined in: packages/b2c-tooling-sdk/src/cli/hooks.ts:46

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

The --config flag value (if provided)


flags? ​

optional flags: Record<string, unknown>

Defined in: packages/b2c-tooling-sdk/src/cli/hooks.ts:60

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

The --instance flag value (if provided)


resolveOptions ​

resolveOptions: ResolveConfigOptions

Defined in: packages/b2c-tooling-sdk/src/cli/hooks.ts:52

Full ResolveConfigOptions for advanced sources that need more context

Released under the Apache-2.0 License.