Skip to content

@salesforce/b2c-tooling-sdk / config / setActiveInstance

Function: setActiveInstance() ​

setActiveInstance(name, options): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/config/dw-json.ts:447

Set an instance as the active default.

Parameters ​

name ​

string

Name of the instance to set as active

options ​

SetActiveInstanceOptions = {}

Options

Returns ​

Promise<void>

Throws ​

Error if instance not found or dw.json doesn't exist

Released under the Apache-2.0 License.