0.0.60 • Published 8 months ago

doris-cli v0.0.60

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

doris-cli

Command line tool for bulk uploading worksheets into mix project.

Requirements

Before installing doris-cli you must have NodeJS installed on your machine.

Installation

To install run the following command:

$ npm install --global doris-cli

Usage

Configure

You also need to configure the BACKOFFICE_API enviroment variable with the backoffice url endpoint:

# macos, linux
$ export BACKOFFICE_API=https://<backoffice url endpoint>
$ export ERIS_API=https://<eris url endpoint>
# windows
$ set BACKOFFICE_API=https://<backoffice url endpoint>
$ set ERIS_API=https://<eris url endpoint>

Partner

To create a partner run in your terminal:

This fields are optional:

  • email (string)
  • whatsapp (string)
  • crawler
$ doris-cli partner create <partner name>

# Examples:
$ doris-cli partner create Reserva
$ doris-cli partner create "Use Reserva" --email reserva@mail.com --whatsapp 5511912341234 --crawler

Products

The products xlsx sheet products sheet

To import run in your terminal:

$ doris-cli products import <file.xlsx> --apikey <apikey>

# Examples:
$ doris-cli products import products.xlsx --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli products import ~/Downloads/products.xlsx --apikey 098f6bcd4621d373cade4e832627b4f6

Suggestions

The suggestions csv structure:

  • model_order (number)
  • top_sku (string)
  • bottom_sku (string)
  • outer_sku (string)
  • full_sku (string)
  • jumpsuit_sku (string)

To import run in your terminal:

$ doris-cli suggestions import <file.csv> --apikey <apikey>

# Examples:
$ doris-cli suggestions import suggestions.csv --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli suggestions import ~/Downloads/suggestions.csv --apikey 098f6bcd4621d373cade4e832627b4f6

Pre-Models

image_url;skin_tone_id;model_size_id;gender

The pre-movels csv structure:

  • image_url (string)
  • skin_tone_id (number)
  • model_size_id (number)
  • gender (string): MALE || FEMALE
$ doris-cli pre-models import <file.csv>

# Examples:
$ doris-cli pre-models import pre-models.csv
$ doris-cli pre-models import ~/Downloads/pre-models.csv

AutoMix

top_sku;bottom_sku

The automix csv structure:

  • top_sku (string)
  • bottom_sku (string)
$ doris-cli automix import <file.csv> --apikey 098f6bcd4621d373cade4e832627b4f6

# Examples:
$ doris-cli automix import automix.csv --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli automix import ~/Downloads/automix.csv --apikey 098f6bcd4621d373cade4e832627b4f6

Triggering Re-Index

To create a reindex trigger you must run in your terminal:

These fields are required:

  • \ OPTIONS: marvik-garment | marvik-avatar
  • api-key VALUE
$ doris-cli reindex <type> --apikey <api-key>

# Examples:
$ doris-cli reindex marvik-garment --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli reindex marvik-avatar --apikey 098f6bcd4621d373cade4e832627b4f6

SizingMeasurements

The sizing measurements xls structure:

  • brand (number)
  • gender (FEMALE or Male)
  • category (TOP or BOTTOM)
  • size (string)
  • measurements_chest_max (number)
  • measurements_waist_max (number)
  • measurements_hip_max (number)

To import run in your terminal:

$ doris-cli sizing-measurements import <file.xls> --apikey <apikey>

# Examples:
$ doris-cli sizing-measurements import measurements.xls --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli sizing-measurements import ~/Downloads/measurements.xls --apikey 098f6bcd4621d373cade4e832627b4f6

AssociateCategories

The associate-categories xls structure:

  • name (string)
  • category_order (number)

To import run in your terminal:

$ doris-cli associate-categories import <file.xls> --apikey <apikey>

# Examples:
$ doris-cli associate-categories import associate-categories.xls --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli associate-categories import ~/Downloads/associate-categories.xls --apikey 098f6bcd4621d373cade4e832627b4f6

AssociatePreModels

The associate-pre-models xls structure:

  • order_model (number)
  • default_model (TRUE or FALSE)
  • pre_model_id (number)
  • preview (TRUE or FALSE)

To import run in your terminal:

$ doris-cli associate-pre-models import <file.xls> --apikey <apikey>

# Examples:
$ doris-cli associate-pre-models import associate-pre-models.xls --apikey 098f6bcd4621d373cade4e832627b4f6
$ doris-cli associate-pre-models import ~/Downloads/associate-pre-models.xls --apikey 098f6bcd4621d373cade4e832627b4f6
0.0.60

8 months ago

0.0.59

2 years ago

0.0.57

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.55

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.30

2 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.18

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago