Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

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

Function: setActiveInstance()

setActiveInstance(name, options): void

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

Set an instance as the active default.

Parameters

name

string

Name of the instance to set as active

options

SetActiveInstanceOptions = {}

Options

Returns

void

Throws

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

Released under the Apache-2.0 License.