@salesforce/b2c-tooling-sdk / openshell
openshell
Run the B2C tooling inside an NVIDIA OpenShell sandbox.
Builds provider profiles, providers, and a network policy from a resolved B2C configuration, then applies them with the openshell CLI. Secrets stay on the gateway; the sandbox receives placeholders.
Example
typescript
import {resolveConfig} from '@salesforce/b2c-tooling-sdk/config';
import {
applyOpenShellSetup,
buildOpenShellDockerfile,
buildOpenShellSetup,
writeOpenShellFiles,
} from '@salesforce/b2c-tooling-sdk/openshell';
const config = resolveConfig().values;
const setup = buildOpenShellSetup(config, {accessLevel: 'READ_ONLY'});
const options = {image: 'b2c-openshell:latest', dockerfile: buildOpenShellDockerfile()};
const files = await writeOpenShellFiles(setup, '.openshell/b2c', options);
await applyOpenShellSetup(setup, files, {...options, secrets: {SFCC_CLIENT_SECRET: config.clientSecret!}});Classes
Interfaces
- ApplyOpenShellSetupOptions
- CommandResult
- OpenShellApplyOptions
- OpenShellFiles
- OpenShellProfile
- OpenShellProvider
- OpenShellSetup
- OpenShellSetupOptions
- OpenShellStep