Upsert Location module powered by Fluent CLI
Author:
Fluent Commerce
Changed on:
17 Apr 2025
Overview
This page covers the various Fluent CLI commands which can be used to configure / install Upsert Location module
Key points
- Fluent CLI should be already setup
Configure Location Upsert module for B2C Retailer
The Upsert Location Module require configuration to be provided to the install. A profile creation is required beforehand. Refer to this Docs page for steps to create profile and retailer -
To generate the configuration files for Upsert Location module, run the following commands:
``fluent module config https://downloads.fluentcommerce.com/v1.0.0/modules/fcx/fc-module-upsert-location/latest --retailer b2c --profile cli-b2c``
This will produce new module configuration files in the current working directory:
module.config.b2c.fc-module-upsert-location.json
You will need to open this config file in a text editor to populate the relevant information.
`{`
` "workflow:location:store:inventory.catalogue.ref": "DEFAULT:1",`
` "workflow:location:store:pick.pack.setting.value": "3",`
` "workflow:location:warehouse:inventory.catalogue.ref": "DEFAULT:1",`
` "workflow:location:warehouse:pick.pack.setting.value": "6"`
`}`
Install Upsert Location module for B2C Retailer
To install the Upsert Location module, run the following commands:
`fluent module install https://downloads.fluentcommerce.com/v1.0.0/modules/fcx/fc-module-upsert-location/latest --retailer b2c --profile cli-b2c --config module.config.b2c.fc-module-upsert-location.json`
Verify the following steps:
- A Location - MASTER_STORE_[[retailer.id]] is created and it's status is ACTIVE
- A Location - MASTER_WAREHOUSE_[[retailer.id]] is created and it's status is ACTIVE
- A User - MASTER_STORE_[[retailer.id]] is created
- A User - MASTER_WAREHOUSE_[[retailer.id]] is created
- The LOCATION::STORE and LOCATION::WAREHOUSE are created / updated with the UPSERT_LOCATION rulesets
- Send a UPSERT_LOCATION event to create / update a location and verify if it succeeds