1.0.20 • Published 4 months ago

@kibocommerce/kibo-sandbox-data-cli v1.0.20

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 months ago

setup

To install the latest version of kibo-sandbox-data CLI, run this command:

npm i -g @kibocommerce/kibo-sandbox-data-cli

Usage

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 export or import will be the target Kibo environment when running a command export or import. When running the sync command, the environment under export is your source and the environment under import is 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: 1

init a data directory ( if you dont already have one)

  • run this command:
kibo-sandbox-data initDataDir

view help

kibo-sandbox-data

import all resources

kibo-sandbox-data import --all

import categories

kibo-sandbox-data import --categories

sync all

kibo-sandbox-data sync --all

export products and locations

kibo-sandbox-data export --products --locations

all 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 --search
1.0.19

4 months ago

1.0.20

4 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

9 months ago

1.0.15

9 months ago

1.0.14

10 months ago

1.0.13

1 year ago

1.0.12-beta

2 years ago

1.0.12

1 year ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago