Inventories Exporter
Configuration
Usage
npm install @commercetools/inventories-exporter --globalCLI
Usage: inventoriesexporter [options]
Export inventories from the commercetools platform.
Options:
--help, -h Show help text. [boolean]
--version Show version number [boolean]
--outputFile, -o Path to output file. [default: "stdout"]
--apiUrl The host URL of the HTTP API service.
[default: "https://api.europe-west1.gcp.commercetools.com"]
--authUrl The host URL of the OAuth API service.
[default: "https://auth.europe-west1.gcp.commercetools.com"]
--delimiter, -d Used CSV delimiter. [default: ","]
--accessToken CTP client access token
--projectKey, -p API project key. [required]
--channelKey, -c Channel key to use as filter for result to export.
Useful if you only have channel key but not id.
Can be used with the query flag
--query, -q Filter query for stocks:
https://docs.commercetools.com/http-api-projects-inventory.html#query-inventory
can be used with channelKey flag
--template, -t Path to a CSV template file with headers which should be
exported.
--format, -f Format for export [choices: "csv", "json"] [default: "json"]
--logLevel Logging level: error, warn, info or verbose.
[default: "info"]
--logFile Path to file where to save logs.
[default: "inventories-exporter.log"]JS
Last updated