@salesforce/b2c-tooling-sdk / config / addInstance
Function: addInstance() ​
addInstance(
instance,options):Promise<void>
Defined in: packages/b2c-tooling-sdk/src/config/dw-json.ts:319
Add a new instance to dw.json.
If dw.json doesn't exist, creates a new one. If an instance with the same name already exists, throws an error.
Parameters ​
instance ​
The instance configuration to add
options ​
AddInstanceOptions = {}
Options for adding
Returns ​
Promise<void>
Throws ​
Error if instance with same name already exists