Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 0455c0f

Browse files
committed
Add missing options for productsdelta command
1 parent 0227fc7 commit 0455c0f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ You can run the following command to execute the full import:
134134
135135
## Executing delta indexer
136136
137-
You can run the following command to execute delta indexer for a storeview:
137+
You can use the following command to run a delta indexer for a specific storeview:
138138
139139
```
140140
yarn mage2vs productsdelta --store-code=de

scripts/mage2vs.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ function exec(cmd, args, opts) {
4545
program
4646
.command('productsdelta')
4747
.option('--store-code <storeCode>', 'storeCode in multistore setup', null)
48+
.option('--adapter <adapter>', 'name of the adapter', 'magento')
49+
.option('--partitions <partitions>', 'number of partitions', 1)
50+
.option('--partitionSize <partitionSize>', 'size of the partitions', 200)
51+
.option('--initQueue <initQueue>', 'use the queue', true)
52+
.option('--skus <skus>', 'comma delimited list of SKUs to fetch fresh informations from', '')
53+
.option('--removeNonExistent <removeNonExistent>', 'remove non existent products', false)
4854
.action((cmd) => {
4955
const apiConfig = multiStoreConfig(config.magento2.api, cmd.storeCode)
5056
let magentoConfig = {
@@ -80,7 +86,13 @@ program
8086
exec('node', [
8187
'--harmony',
8288
'node_modules/mage2vuestorefront/src/cli.js',
83-
'productsdelta'
89+
'productsdelta',
90+
'--adapter=' + cmd.adapter,
91+
'--partitions=' + cmd.partitions,
92+
'--partitionSize=' + cmd.partitionSize,
93+
'--initQueue=' + cmd.initQueue,
94+
'--skus=' + cmd.skus,
95+
'--removeNonExistent=' + cmd.removeNonExistent
8496
], { env: env, shell: true }).then((res) => {
8597

8698
})

0 commit comments

Comments
 (0)