cli-command-development
OfficialGuides building new CLI commands for B2C CLI.
AuthorSalesforceCommerceCloud
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Creating consistent, reusable patterns for adding new CLI commands and topics to the B2C CLI using oclif, reducing boilerplate and onboarding time.
Core Features & Use Cases
- Command organization templates: maps topic and command structure to file paths under packages/b2c-cli/src/commands.
- Base-class guidance: outlines suitable base classes (BaseCommand, OAuthCommand, InstanceCommand, etc.) and when to use them.
- Example templates: provides example command skeletons and i18n usage to accelerate development.
- Use Case: A developer adds a new feature topic and a corresponding command, following standard patterns, and publishes it with consistent documentation.
Quick Start
Create a new command file at packages/b2c-cli/src/commands/<topic>/<command>.ts, implement the command using the recommended base class, add necessary i18n keys, and update the skill page if applicable. Build and test with pnpm to verify the new topic.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cli-command-development Download link: https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/archive/main.zip#cli-command-development Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.