{"_id":"@akiavara/sfcc-catalog-inventory","name":"@akiavara/sfcc-catalog-inventory","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@akiavara/sfcc-catalog-inventory","version":"1.0.0","description":"Create Salesforce Commerce Cloud Inventory XML from Catalog XML","homepage":"https://github.com/akiavara/sfcc-catalog-inventory#readme","main":"bin/index.js","bin":{"sfcc-catalog-inventory":"bin/index.js"},"keywords":["salesforce","sfcc","catalog","inventory"],"contributors":[{"name":"Thibault Desmoulins"}],"repository":{"type":"git","url":"git+https://github.com/akiavara/sfcc-catalog-inventory.git"},"bugs":{"url":"https://github.com/akiavara/sfcc-catalog-inventory/issues"},"scripts":{"lint":"eslint --ext .js ./"},"license":"MIT","dependencies":{"chalk":"^4.1.0","lodash":"^4.17.21","ora":"^4.0.5","xml2js":"^0.4.23","yargs":"^15.4.1"},"devDependencies":{"babel-eslint":"^10.1.0","eslint":"^7.17.0"},"directories":{"lib":"lib"},"gitHead":"3a407f9d1e428a4dbb4c21e71caadfcb9ae60031","_id":"@akiavara/sfcc-catalog-inventory@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-dKQ6Mh4xyXDOOeVP2o4nZx8/y7VodBc35xsh33hAbkYYjCpV348xLLFXjsPoRyhHPih+QPuynP8Kfc6Dn0hofg==","shasum":"a50b552fa38933df6af04887f81f3e320159f1cc","tarball":"https://registry.npmjs.org/@akiavara/sfcc-catalog-inventory/-/sfcc-catalog-inventory-1.0.0.tgz","fileCount":6,"unpackedSize":12118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASzQi2r1B8qQCerL0poET5p114Hc7wNgsYR4p4jhtFSAiA+6mMHLYqL23OQLF8tK5QIsAjNXVwZ1zBaEvo3w0GP+g=="}]},"_npmUser":{"name":"akiavara","email":"akiavara@gmail.com"},"maintainers":[{"name":"akiavara","email":"akiavara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sfcc-catalog-inventory_1.0.0_1683377683973_0.7241001396518656"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-06T12:54:43.774Z","1.0.0":"2023-05-06T12:54:44.139Z","modified":"2023-05-06T12:54:44.525Z"},"maintainers":[{"name":"akiavara","email":"akiavara@gmail.com"}],"description":"Create Salesforce Commerce Cloud Inventory XML from Catalog XML","homepage":"https://github.com/akiavara/sfcc-catalog-inventory#readme","keywords":["salesforce","sfcc","catalog","inventory"],"repository":{"type":"git","url":"git+https://github.com/akiavara/sfcc-catalog-inventory.git"},"contributors":[{"name":"Thibault Desmoulins"}],"bugs":{"url":"https://github.com/akiavara/sfcc-catalog-inventory/issues"},"license":"MIT","readme":"SFCC Catalog Inventory\n===\n\nCreate Salesforce Commerce Cloud Inventory XML from Catalog XML\n\nInstallation\n---\n\nYou can install this package via NPM:\n\n```bash\nnpm install -g @akiavara/sfcc-catalog-inventory\n```\n\nIf 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.\n\nUsage\n---\n\nThe most common usage will look like this:\n\n```bash\nsfcc-catalog-inventory -i /path/to/catalog.xml\n```\n\n**FLAGS:**\n\nName             | Param                | Alias      | Required | Default Value | Definition\n-----------------|----------------------|------------|----------|---------------|---------------------\nInput            | `--input`            | `-i`       | Yes      |               | Path to SFCC Catalog XML File\nOutput           | `--output`           | `-o`       | No       | inventory.xml | Output XML file name\nID               | `--id`               |            | No       |               | ID of Inventory ( Defaults to Catalog Name )\nDescription      | `--description`      | `-d`       | No       |               | Description of Inventory\nDefault in stock | `--default-in-stock` | `-s`       | No       | false         | Default in stock value of Inventory\nMin Stock        | `--min-stock`        | `-m`       | No       | 1             | Minimum stock generated for a product in the Inventory\nMax Stock        | `--max-stock `       | `-x`       | No       | 100000        | Maximum stock generated for a product in the Inventory\n\n**EXAMPLES:**\n\n```bash\nsfcc-catalog-inventory -i /path/to/catalog.xml\nsfcc-catalog-inventory -i /path/to/catalog.xml -o inventory.xml\nsfcc-catalog-inventory -i /path/to/catalog.xml -o inventory.xml -s\n\nsfcc-catalog-inventory -i /path/to/catalog.xml --id \"test-inventory\"\nsfcc-catalog-inventory --input /path/to/catalog.xml --id \"test-inventory\"\n\nsfcc-catalog-inventory -i /path/to/catalog.xml -o /path/to/inventory.xml -d \"My great description\"\nsfcc-catalog-inventory --input /path/to/catalog.xml --output /path/to/inventory.xml --description \"My great description\"\n\nsfcc-catalog-inventory -i /path/to/catalog.xml -m 100 -x 200\n```\n\nTroubleshooting\n---\n\nNeed help on how to run this tool?  Just run the command without options to see example usage & instruction.\n\n```bash\nsfcc-catalog-inventory\n```\n","readmeFilename":"README.md"}