1.0.0 • Published 2 years ago

@akiavara/sfcc-catalog-inventory v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

SFCC Catalog Inventory

Create Salesforce Commerce Cloud Inventory XML from Catalog XML

Installation

You can install this package via NPM:

npm install -g @akiavara/sfcc-catalog-inventory

If you clone this repository you can run the npm link command before using this tool. This will allows you to directly run the sfcc-catalog-inventory command in your command line directly.

Usage

The most common usage will look like this:

sfcc-catalog-inventory -i /path/to/catalog.xml

FLAGS:

NameParamAliasRequiredDefault ValueDefinition
Input--input-iYesPath to SFCC Catalog XML File
Output--output-oNoinventory.xmlOutput XML file name
ID--idNoID of Inventory ( Defaults to Catalog Name )
Description--description-dNoDescription of Inventory
Default in stock--default-in-stock-sNofalseDefault in stock value of Inventory
Min Stock--min-stock-mNo1Minimum stock generated for a product in the Inventory
Max Stock--max-stock-xNo100000Maximum stock generated for a product in the Inventory

EXAMPLES:

sfcc-catalog-inventory -i /path/to/catalog.xml
sfcc-catalog-inventory -i /path/to/catalog.xml -o inventory.xml
sfcc-catalog-inventory -i /path/to/catalog.xml -o inventory.xml -s

sfcc-catalog-inventory -i /path/to/catalog.xml --id "test-inventory"
sfcc-catalog-inventory --input /path/to/catalog.xml --id "test-inventory"

sfcc-catalog-inventory -i /path/to/catalog.xml -o /path/to/inventory.xml -d "My great description"
sfcc-catalog-inventory --input /path/to/catalog.xml --output /path/to/inventory.xml --description "My great description"

sfcc-catalog-inventory -i /path/to/catalog.xml -m 100 -x 200

Troubleshooting

Need help on how to run this tool? Just run the command without options to see example usage & instruction.

sfcc-catalog-inventory