doris-cli
v0.0.60
Published
Command line tool for bulk uploading worksheets into mix project.
Downloads
104
Readme
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 [email protected] --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:
- <type> 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