---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [openshell](../index.md) / applyOpenShellSetup

# Function: applyOpenShellSetup()

> **applyOpenShellSetup**(`setup`, `files`, `options`): `Promise`\<[`OpenShellStep`](../interfaces/OpenShellStep.md)[]\>

Defined in: [packages/b2c-tooling-sdk/src/openshell/apply.ts:229](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/openshell/apply.ts#L229)

Applies the setup, converging on the desired state so it can be re-run:

1. Checks that the OpenShell gateway is reachable.
2. Builds the sandbox image if it does not exist.
3. Imports each provider profile, or updates it if it exists.
4. Creates each provider, or updates its secret if it exists.
5. Creates the sandbox, or applies the policy and Safety Mode configuration
   to the existing sandbox.

## Parameters

### setup

[`OpenShellSetup`](../interfaces/OpenShellSetup.md)

### files

[`OpenShellFiles`](../interfaces/OpenShellFiles.md)

### options

[`ApplyOpenShellSetupOptions`](../interfaces/ApplyOpenShellSetupOptions.md)

## Returns

`Promise`\<[`OpenShellStep`](../interfaces/OpenShellStep.md)[]\>

The steps that were run
