Archive and imports the file in sfcc instance
npm install sfcc-archive-import
{
"_v":"21.3",
"clients":[
{
"client_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"resources":[
{
"resource_id": "/jobs/*/executions",
"methods": [
"post"
],
"read_attributes": "(**)",
"write_attributes": "(**)"
},
{
"resource_id": "/jobs//executions/",
"methods": [
"get"
],
"read_attributes": "(**)",
"write_attributes": "(**)"
}
]
}
]
}
`
Getting started
`
npm install sfcc-archive-import -g
`
Usage
sfcc-archive-import [options]
Sample command when installed globally
`
If hostname, username, password is defined in dw.json
sfcc-archive-import --folderToImport= --clientId= --clientPassword=
``
--help Generate help message
-h, --hostname String Hostname of the server to be connected
-u, --username String BM username
-p, --password String BM password
-c, --clientId String OCAPI client ID
-l, --clientPassword String OCAPI client password
--folderToImport, --fi String Path of folder to be imported relative to current working directory
--doNotZip, --dnz Used when zip file is provided in folderToImport path, zipping the folder is not required
--uploadOnly, --uo Only upload the file and do not import it