1.0.20 • Published 2 years ago
@kibocommerce/kibo-sandbox-data-cli v1.0.20
setup
To install the latest version of kibo-sandbox-data CLI, run this command:
npm i -g @kibocommerce/kibo-sandbox-data-cliUsage
set up env
- init a template for the environment variables
kibo-sandbox-data initEnv- populate the .env.yaml file with the corresponding values for your tenant and app for your target
- Configuration under
exportorimportwill be the target Kibo environment when running a commandexportorimport. When running thesynccommand, the environment underexportis your source and the environment underimportis the destination
export:
KIBO_CLIENT_ID: ******************
KIBO_SHARED_SECRET: *************
KIBO_API_BASE_URL: https://home.mozu.com
KIBO_TENANT: ******
KIBO_SITE_ID: ****
KIBO_MASTER_CATALOG_ID: 1
KIBO_CATALOG_ID: 1
import:
KIBO_CLIENT_ID: ******************
KIBO_SHARED_SECRET: *************
KIBO_API_BASE_URL: https://home.mozu.com
KIBO_TENANT: ******
KIBO_SITE_ID: ****
KIBO_MASTER_CATALOG_ID: 1
KIBO_CATALOG_ID: 1init a data directory ( if you dont already have one)
- run this command:
kibo-sandbox-data initDataDirview help
kibo-sandbox-dataimport all resources
kibo-sandbox-data import --allimport categories
kibo-sandbox-data import --categoriessync all
kibo-sandbox-data sync --allexport products and locations
kibo-sandbox-data export --products --locationsall options
kibo-sandbox-data <command>
Commands:
kibo-sandbox-data export export --categories --documents
banners,hero_images
kibo-sandbox-data import import --products --documents
banners,hero_images
kibo-sandbox-data clean clean --productAttributes --documents
banners,hero_images
kibo-sandbox-data initDataDir initDataDir #copies default data directory
kibo-sandbox-data initEnv initEnv #copies creates an empty .env file
Options:
--version Show version number [boolean]
-a, --all include all resources [boolean]
--data location of data directory
[string] [default: "./data"]
--categories include category [boolean]
--discounts include discount [boolean]
--documents include documents from an array of lists [array]
--documentLists include document lists [boolean]
--documentTypes include documentTypes [boolean]
--locations include locations [boolean]
--products include products [boolean]
--productAttributes include productAttributes [boolean]
--productTypes include productTypes [boolean]
--help Show help [boolean]Development
git clone https://github.com/KiboSoftware/kibo-sandbox-data-cli
cd kibo-sandbox-data-cli
npm install
# Then for example, testing the search feature
npm run build && node bin/index.js export --search1.0.19
2 years ago
1.0.20
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
3 years ago
1.0.12-beta
3 years ago
1.0.12
3 years ago
1.0.9
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago