@commerce-klaus/b2c-plugin
Commerce Klaus commands for the Salesforce B2C CLI.
@commerce-klaus/typescript-sfcc is a peer dependency so the editor plugin and
B2C CLI commands use the same project-level version.
All project and type commands discover commerce-klaus.config.ts or
commerce-klaus.config.js. Explicit command flags override the shared values
for one invocation.
Install
pnpm add -D @commerce-klaus/b2c-plugin @commerce-klaus/typescript-sfcc @salesforce/b2c-cli typescript
npm install -D @commerce-klaus/b2c-plugin @commerce-klaus/typescript-sfcc @salesforce/b2c-cli typescript
yarn add -D @commerce-klaus/b2c-plugin @commerce-klaus/typescript-sfcc @salesforce/b2c-cli typescript
vp install -D @commerce-klaus/b2c-plugin @commerce-klaus/typescript-sfcc @salesforce/b2c-cli typescript
Register the project-local plugin after dependency installation:
{
"scripts": {
"prepare": "b2c plugins link node_modules/@commerce-klaus/b2c-plugin --no-install"
}
}
Run the prepare script to refresh the link after changing the plugin locally:
pnpm run prepare
npm run prepare
yarn run prepare
vp run prepare
Quick start
b2c klaus types sync
b2c klaus types check
b2c klaus inspect
b2c klaus validate
Commerce Klaus also provides commands for generated type status and cleanup,
project graphs and impact analysis, module, Custom API, hook, and job step
resolution explanations with cartridge-order provenance, and project
diagnostics. Run b2c klaus --help or a subcommand with --help for the local
command reference.
Documentation
See the complete command and configuration reference.
License
MIT