Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercelayer/cli-plugin-imports

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/cli-plugin-imports - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

lib/api-conf.js

@@ -7,2 +7,4 @@ "use strict";

'skus',
'sku_lists',
'sku_list_items',
'prices',

@@ -9,0 +11,0 @@ 'stock_items',

2

oclif.manifest.json

@@ -1,1 +0,1 @@

{"version":"1.2.1","commands":{"imports:create":{"id":"imports:create","description":"create a new import","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"examples":["$ commercelayer imports:create -t stock_items -p <stock_location-id> -i <input-file-path>","$ cl imp:create skus -c -i <input-file-path>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"type":{"name":"type","type":"option","char":"t","description":"the type of resource being imported","required":true,"helpValue":"orders|coupons|skus|prices|...","options":["orders","coupons","skus","prices","stock_items","gift_cards","customers","customer_subscriptions","tax_categories"]},"parent":{"name":"parent","type":"option","char":"p","description":"the id of the parent resource to be associated with imported data"},"inputs":{"name":"inputs","type":"option","char":"i","description":"the path of the file containing the data to import","required":true},"csv":{"name":"csv","type":"boolean","char":"C","description":"accept input file in CSV format","allowNo":false},"blind":{"name":"blind","type":"boolean","char":"b","description":"execute in blind mode without showing the progress monitor","allowNo":false},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"execute command without showing warning messages","allowNo":false}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:delete":{"id":"imports:delete","description":"delete an existing import","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:delete"],"examples":["$ commercelayer imports:delete <import-id>>","$ cl imp:delete <import-id>>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:details":{"id":"imports:details","description":"show the details of an existing import","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["import","imp:details"],"examples":["$ commercelayer imports:details <import-id>","$ cl import <import-id> -i","$ cl imp:details <import-id> -i -l"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"inputs":{"name":"inputs","type":"boolean","char":"i","description":"show input items associated with the import","allowNo":false},"logs":{"name":"logs","type":"boolean","char":"l","description":"show warning and error logs related to the import process","allowNo":false}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:group":{"id":"imports:group","description":"list all the imports related to an import group","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:group"],"examples":["$ commercelayer imports:group <group-id>","$ cl imports:ghroup <group-id>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"group_id","description":"unique id of the group import","required":true,"hidden":false}]},"imports":{"id":"imports","description":"list all the created imports","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","options":["orders","coupons","skus","prices","stock_items","gift_cards","customers","customer_subscriptions","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports"},"status":{"name":"status","type":"option","char":"s","description":"the import job status","options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output"}},"args":[]},"imports:list":{"id":"imports:list","description":"list all the created imports","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:list"],"examples":["$ commercelayer imports","$ cl imports:list -A","$ cl imp:list"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","options":["orders","coupons","skus","prices","stock_items","gift_cards","customers","customer_subscriptions","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports"},"status":{"name":"status","type":"option","char":"s","description":"the import job status","options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output"}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:noc":{"id":"imports:noc","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"imports:types":{"id":"imports:types","description":"show online documentation for supported resources","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
{"version":"1.3.0","commands":{"imports:create":{"id":"imports:create","description":"create a new import","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"examples":["$ commercelayer imports:create -t stock_items -p <stock_location-id> -i <input-file-path>","$ cl imp:create skus -c -i <input-file-path>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"type":{"name":"type","type":"option","char":"t","description":"the type of resource being imported","required":true,"helpValue":"orders|coupons|skus|sku_lists|...","options":["orders","coupons","skus","sku_lists","sku_list_items","prices","stock_items","gift_cards","customers","customer_subscriptions","tax_categories"]},"parent":{"name":"parent","type":"option","char":"p","description":"the id of the parent resource to be associated with imported data"},"inputs":{"name":"inputs","type":"option","char":"i","description":"the path of the file containing the data to import","required":true},"csv":{"name":"csv","type":"boolean","char":"C","description":"accept input file in CSV format","allowNo":false},"blind":{"name":"blind","type":"boolean","char":"b","description":"execute in blind mode without showing the progress monitor","allowNo":false},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"execute command without showing warning messages","allowNo":false}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:delete":{"id":"imports:delete","description":"delete an existing import","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:delete"],"examples":["$ commercelayer imports:delete <import-id>>","$ cl imp:delete <import-id>>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:details":{"id":"imports:details","description":"show the details of an existing import","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["import","imp:details"],"examples":["$ commercelayer imports:details <import-id>","$ cl import <import-id> -i","$ cl imp:details <import-id> -i -l"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"inputs":{"name":"inputs","type":"boolean","char":"i","description":"show input items associated with the import","allowNo":false},"logs":{"name":"logs","type":"boolean","char":"l","description":"show warning and error logs related to the import process","allowNo":false}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:group":{"id":"imports:group","description":"list all the imports related to an import group","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:group"],"examples":["$ commercelayer imports:group <group-id>","$ cl imports:ghroup <group-id>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"group_id","description":"unique id of the group import","required":true,"hidden":false}]},"imports":{"id":"imports","description":"list all the created imports","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","options":["orders","coupons","skus","sku_lists","sku_list_items","prices","stock_items","gift_cards","customers","customer_subscriptions","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports"},"status":{"name":"status","type":"option","char":"s","description":"the import job status","options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output"}},"args":[]},"imports:list":{"id":"imports:list","description":"list all the created imports","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:list"],"examples":["$ commercelayer imports","$ cl imports:list -A","$ cl imp:list"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","options":["orders","coupons","skus","sku_lists","sku_list_items","prices","stock_items","gift_cards","customers","customer_subscriptions","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports"},"status":{"name":"status","type":"option","char":"s","description":"the import job status","options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output"}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:noc":{"id":"imports:noc","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"imports:types":{"id":"imports:types","description":"show online documentation for supported resources","pluginName":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
{
"name": "@commercelayer/cli-plugin-imports",
"description": "Commerce Layer CLI Imports plugin",
"version": "1.2.1",
"version": "1.3.0",
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
"bin": {
"cl-imports": "./bin/run",
"cli": "./bin/run"
},
"bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-imports/issues",

@@ -51,3 +47,2 @@ "devDependencies": {

"commands": "./lib/commands",
"bin": "cl-imports",
"devPlugins": [

@@ -76,4 +71,4 @@ "@oclif/plugin-help"

"dependencies": {
"@commercelayer/js-auth": "^2.0.4",
"@commercelayer/sdk": "^2.1.1",
"@commercelayer/js-auth": "^2.0.8",
"@commercelayer/sdk": "^2.1.2",
"@fast-csv/parse": "^4.3.6",

@@ -80,0 +75,0 @@ "@oclif/command": "^1.8.0",

@@ -19,7 +19,7 @@ cli-plugin-imports

```sh-session
$ cl-imports COMMAND
$ @commercelayer/cli-plugin-imports COMMAND
$ cl-imports (-v | version | --version) to check the version of the CLI you have installed.
$ @commercelayer/cli-plugin-imports (-v | version | --version) to check the version of the CLI you have installed.
$ cl-imports [COMMAND] (--help | -h) for detailed information about CLI commands.
$ @commercelayer/cli-plugin-imports [COMMAND] (--help | -h) for detailed information about CLI commands.
```

@@ -30,11 +30,11 @@ <!-- usagestop -->

* [`cl-imports imports`](#cl-imports-imports)
* [`cl-imports imports:create`](#cl-imports-importscreate)
* [`cl-imports imports:delete ID`](#cl-imports-importsdelete-id)
* [`cl-imports imports:details ID`](#cl-imports-importsdetails-id)
* [`cl-imports imports:group GROUP_ID`](#cl-imports-importsgroup-group_id)
* [`cl-imports imports:list`](#cl-imports-importslist)
* [`cl-imports imports:types`](#cl-imports-importstypes)
* [`@commercelayer/cli-plugin-imports imports`](#commercelayercli-plugin-imports-imports)
* [`@commercelayer/cli-plugin-imports imports:create`](#commercelayercli-plugin-imports-importscreate)
* [`@commercelayer/cli-plugin-imports imports:delete ID`](#commercelayercli-plugin-imports-importsdelete-id)
* [`@commercelayer/cli-plugin-imports imports:details ID`](#commercelayercli-plugin-imports-importsdetails-id)
* [`@commercelayer/cli-plugin-imports imports:group GROUP_ID`](#commercelayercli-plugin-imports-importsgroup-group_id)
* [`@commercelayer/cli-plugin-imports imports:list`](#commercelayercli-plugin-imports-importslist)
* [`@commercelayer/cli-plugin-imports imports:types`](#commercelayercli-plugin-imports-importstypes)
### `cl-imports imports`
### `@commercelayer/cli-plugin-imports imports`

@@ -45,3 +45,3 @@ List all the created imports.

USAGE
$ cl-imports imports
$ @commercelayer/cli-plugin-imports imports

@@ -67,3 +67,5 @@ OPTIONS

-t, --type=orders|coupons|skus|prices|stock_items|gift_cards|customers|customer_subscriptions|tax_categories
-t,
--type=orders|coupons|skus|sku_lists|sku_list_items|prices|stock_items|gift_cards|customers|customer_subscriptions|tax
_categories
the type of resource imported

@@ -77,3 +79,3 @@

### `cl-imports imports:create`
### `@commercelayer/cli-plugin-imports imports:create`

@@ -84,12 +86,12 @@ Create a new import.

USAGE
$ cl-imports imports:create
$ @commercelayer/cli-plugin-imports imports:create
OPTIONS
-C, --csv accept input file in CSV format
-b, --blind execute in blind mode without showing the progress monitor
-i, --inputs=inputs (required) the path of the file containing the data to import
-o, --organization=organization (required) the slug of your organization
-p, --parent=parent the id of the parent resource to be associated with imported data
-q, --quiet execute command without showing warning messages
-t, --type=orders|coupons|skus|prices|... (required) the type of resource being imported
-C, --csv accept input file in CSV format
-b, --blind execute in blind mode without showing the progress monitor
-i, --inputs=inputs (required) the path of the file containing the data to import
-o, --organization=organization (required) the slug of your organization
-p, --parent=parent the id of the parent resource to be associated with imported data
-q, --quiet execute command without showing warning messages
-t, --type=orders|coupons|skus|sku_lists|... (required) the type of resource being imported

@@ -103,3 +105,3 @@ EXAMPLES

### `cl-imports imports:delete ID`
### `@commercelayer/cli-plugin-imports imports:delete ID`

@@ -110,3 +112,3 @@ Delete an existing import.

USAGE
$ cl-imports imports:delete ID
$ @commercelayer/cli-plugin-imports imports:delete ID

@@ -120,3 +122,3 @@ ARGUMENTS

ALIASES
$ cl-imports imp:delete
$ @commercelayer/cli-plugin-imports imp:delete

@@ -130,3 +132,3 @@ EXAMPLES

### `cl-imports imports:details ID`
### `@commercelayer/cli-plugin-imports imports:details ID`

@@ -137,3 +139,3 @@ Show the details of an existing import.

USAGE
$ cl-imports imports:details ID
$ @commercelayer/cli-plugin-imports imports:details ID

@@ -149,4 +151,4 @@ ARGUMENTS

ALIASES
$ cl-imports import
$ cl-imports imp:details
$ @commercelayer/cli-plugin-imports import
$ @commercelayer/cli-plugin-imports imp:details

@@ -161,3 +163,3 @@ EXAMPLES

### `cl-imports imports:group GROUP_ID`
### `@commercelayer/cli-plugin-imports imports:group GROUP_ID`

@@ -168,3 +170,3 @@ List all the imports related to an import group.

USAGE
$ cl-imports imports:group GROUP_ID
$ @commercelayer/cli-plugin-imports imports:group GROUP_ID

@@ -178,3 +180,3 @@ ARGUMENTS

ALIASES
$ cl-imports imp:group
$ @commercelayer/cli-plugin-imports imp:group

@@ -188,3 +190,3 @@ EXAMPLES

### `cl-imports imports:list`
### `@commercelayer/cli-plugin-imports imports:list`

@@ -195,3 +197,3 @@ List all the created imports.

USAGE
$ cl-imports imports:list
$ @commercelayer/cli-plugin-imports imports:list

@@ -217,3 +219,5 @@ OPTIONS

-t, --type=orders|coupons|skus|prices|stock_items|gift_cards|customers|customer_subscriptions|tax_categories
-t,
--type=orders|coupons|skus|sku_lists|sku_list_items|prices|stock_items|gift_cards|customers|customer_subscriptions|tax
_categories
the type of resource imported

@@ -225,3 +229,3 @@

ALIASES
$ cl-imports imp:list
$ @commercelayer/cli-plugin-imports imp:list

@@ -236,3 +240,3 @@ EXAMPLES

### `cl-imports imports:types`
### `@commercelayer/cli-plugin-imports imports:types`

@@ -243,3 +247,3 @@ Show online documentation for supported resources.

USAGE
$ cl-imports imports:types
$ @commercelayer/cli-plugin-imports imports:types
```

@@ -246,0 +250,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc