0.0.59 • Published 5 months ago

doris-cli v0.0.59

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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.59

5 months ago

0.0.57

5 months ago

0.0.46

10 months ago

0.0.47

10 months ago

0.0.51

8 months ago

0.0.52

8 months ago

0.0.53

8 months ago

0.0.54

8 months ago

0.0.55

8 months ago

0.0.48

10 months ago

0.0.49

9 months ago

0.0.40

11 months ago

0.0.41

11 months ago

0.0.42

11 months ago

0.0.44

11 months ago

0.0.45

11 months ago

0.0.38

11 months ago

0.0.39

11 months ago

0.0.37

12 months ago

0.0.36

12 months ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.30

1 year ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

1 year ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.18

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago