generate_cartridge_structure
Creates organized cartridge directory structures with required files and configurations for Salesforce B2C Commerce Cloud development projects.
Instructions
Generate a complete cartridge directory structure with all necessary files and configurations. Use this when creating new cartridges to ensure proper organization and include all required components. This tool creates all necessary files directly in the specified target directory, ensuring the cartridge is created exactly where needed in your project structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cartridgeName | Yes | Name of the cartridge (e.g., "plugin_example") | |
| targetPath | No | Target directory path where the cartridge files should be placed. If not specified, files will be placed in the current working directory. Use absolute paths for best results (e.g., "/Users/username/projects/my-sfcc-project/"). | |
| fullProjectSetup | No | Whether to create a complete project setup (package.json, webpack, etc.) or just add a cartridge to existing project structure. Use true for new projects, false to add cartridge to existing projects. Always send the root of the project directory as the targetPath. |