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

@commercelayer/cli

Package Overview
Dependencies
Maintainers
5
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/cli - npm Package Compare versions

Comparing version 5.5.1-beta.1 to 5.5.1

2

lib/commands/applications/add.d.ts

@@ -11,3 +11,3 @@ import { Command } from '@oclif/core';

clientSecret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
scope: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
scope: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined>;
email: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;

@@ -14,0 +14,0 @@ password: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;

@@ -13,3 +13,3 @@ import { Command, Config } from '@oclif/core';

clientSecret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
scope: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
scope: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined>;
email: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;

@@ -23,4 +23,4 @@ password: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;

declare const getApplicationInfo: (auth: AppAuth, accessToken: string) => Promise<AppInfo>;
declare const checkScope: (scopeFlags: string[]) => AuthScope;
declare const checkScope: (scopeFlags: string[] | undefined) => AuthScope;
declare const checkAlias: (alias: string, config?: Config, organization?: string) => string;
export { getApplicationInfo, checkScope, checkAlias };

@@ -20,3 +20,4 @@ "use strict";

catch (error) {
this.error(error.message);
if (error.message && !error.message.includes('is not a supported shell'))
this.error(error.message);
}

@@ -23,0 +24,0 @@ }

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

{"version":"5.5.1-beta.1","commands":{"noc":{"id":"noc","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","hidden":true,"aliases":[],"flags":{"organization":{"name":"organization","type":"option","hidden":true,"required":false,"multiple":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":false,"multiple":false}},"args":[],"_globalFlags":{}},"applications:add":{"id":"applications:add","description":"add a new Commerce Layer application to CLI config","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:add"],"examples":["$ commercelayer applications:add -o <organizationSlug> -i <clientId> -s <clientSecret> -a <applicationAlias>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"clientId":{"name":"clientId","type":"option","char":"i","description":"application client_id","required":true,"multiple":false},"clientSecret":{"name":"clientSecret","type":"option","char":"s","description":"application client_secret","required":false,"multiple":false},"scope":{"name":"scope","type":"option","char":"S","description":"access token scope (market, stock location)","required":false,"multiple":true},"email":{"name":"email","type":"option","char":"e","description":"customer email","multiple":false,"dependsOn":["password"]},"password":{"name":"password","type":"option","char":"p","description":"customer secret password","multiple":false,"dependsOn":["email"]},"alias":{"name":"alias","type":"option","char":"a","description":"the alias you want to associate to the application","required":true,"multiple":false}},"args":[],"_globalFlags":{}},"applications:current":{"id":"applications:current","description":"show the current application","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:current"],"examples":["$ commercelayer applications:current","$ commercelayer app:current --info"],"flags":{"info":{"name":"info","type":"boolean","hidden":true,"allowNo":false,"exclusive":["organization","live"]},"json":{"name":"json","type":"boolean","char":"j","description":"show info in JSON format","allowNo":false,"dependsOn":["info"]}},"args":[],"_globalFlags":{}},"applications":{"id":"applications","description":"show a list of all (logged in) available CLI applications","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:list","applications:list","app:available","applications:available","apps"],"examples":["$ commercelayer applications","$ cl applications"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"extra":{"name":"extra","type":"boolean","char":"X","description":"show applications extra info","hidden":true,"allowNo":false},"sort":{"name":"sort","type":"boolean","char":"S","description":"sort applications by Organization and Application name","allowNo":false}},"args":[],"_globalFlags":{}},"applications:info":{"id":"applications:info","description":"show application details","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:info"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"json":{"name":"json","type":"boolean","char":"j","description":"show info in JSON format","allowNo":false}},"args":[],"_globalFlags":{}},"applications:login":{"id":"applications:login","description":"execute login to a Commerce Layer application","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:login"],"examples":["$ commercelayer applications:login -o <organizationSlug> -i <clientId> -s <clientSecret> -a <applicationAlias>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"clientId":{"name":"clientId","type":"option","char":"i","description":"application client_id","required":true,"multiple":false},"clientSecret":{"name":"clientSecret","type":"option","char":"s","description":"application client_secret","required":false,"multiple":false},"scope":{"name":"scope","type":"option","char":"S","description":"access token scope (market, stock location)","required":false,"multiple":true},"email":{"name":"email","type":"option","char":"e","description":"customer email","multiple":false,"dependsOn":["password"]},"password":{"name":"password","type":"option","char":"p","description":"customer secret password","multiple":false,"dependsOn":["email"]},"alias":{"name":"alias","type":"option","char":"a","description":"the alias you want to associate to the application","required":true,"multiple":false}},"args":[],"_globalFlags":{}},"applications:logout":{"id":"applications:logout","description":"remove an application from CLI local configuration","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:logout","app:remove","applications:remove"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke current access token","allowNo":false}},"args":[],"_globalFlags":{}},"applications:scope":{"id":"applications:scope","description":"switch scope of current application","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:scope"],"examples":["$ commercelayer <%= command.id %> market:1234","$ cl app:scope market:1234"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"the alias you want to associate to the application","required":false,"multiple":false}},"args":[{"name":"scope","description":"the application scope","required":true}],"_globalFlags":{}},"applications:switch":{"id":"applications:switch","description":"switch applications","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:switch"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]}},"args":[],"_globalFlags":{}},"applications:token":{"id":"applications:token","description":"get a new access token from Commerce Layer API","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","hidden":true,"aliases":["app:token"],"examples":["$ commercelayer applications:token","$ commercelayer app:token --info"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"save":{"name":"save","type":"boolean","char":"s","description":"save access token","allowNo":false},"info":{"name":"info","type":"boolean","char":"i","description":"show access token info","allowNo":false},"shared":{"name":"shared","type":"option","char":"S","description":"organization shared secret","hidden":true,"multiple":false,"exclusive":["save"]},"minutes":{"name":"minutes","type":"option","char":"M","description":"minutes to token expiration [2, 120]","hidden":true,"multiple":false,"dependsOn":["shared"]}},"args":[],"_globalFlags":{}},"cli:update":{"id":"cli:update","description":"Update Commerce Layer CLI","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["upgrade","latest"],"examples":["<%= config.bin %> <%= command.id %> --version=<version-or-tag>"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"Update CLI to a specific version or tag","required":false,"multiple":false}},"args":[],"_globalFlags":{}},"cli:version":{"id":"cli:version","description":"Show installed version of Commerce Layer CLI","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["version"],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[]},"config:default":{"id":"config:default","description":"reset CLI configuration to default values","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"F","description":"mandatory flag to avoid unintentional config changes","hidden":true,"required":false,"allowNo":false}},"args":[],"_globalFlags":{}},"config:del":{"id":"config:del","description":"delete a CLI configuration parameter","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"F","description":"mandatory flag to avoid unintentional config changes","hidden":true,"required":false,"allowNo":false}},"args":[{"name":"param","description":"configuration parameter name","required":true}],"_globalFlags":{}},"config:get":{"id":"config:get","description":"get a CLI configuration parameter","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"param","description":"configuration parameter name","required":true}],"_globalFlags":{}},"config:set":{"id":"config:set","description":"set a CLI configuration parameter","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"F","description":"mandatory flag to avoid unintentional config changes","hidden":true,"required":false,"allowNo":false}},"args":[{"name":"param","description":"configuration parameter name","required":true},{"name":"value","description":"value to be saved in configuration file","required":true}],"_globalFlags":{}},"config:show":{"id":"config:show","description":"show current CLI configuration","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{},"args":[],"_globalFlags":{}},"plugins:available":{"id":"plugins:available","description":"show all available Commerce Layer CLI plugins","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"examples":["$ commercelayer plugins:available"],"flags":{"hidden":{"name":"hidden","type":"boolean","char":"H","description":"show also enabled but hidden plugins","hidden":true,"allowNo":false}},"args":[],"_globalFlags":{}}}}
{"version":"5.5.1","commands":{"noc":{"id":"noc","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","hidden":true,"aliases":[],"flags":{"organization":{"name":"organization","type":"option","hidden":true,"required":false,"multiple":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":false,"multiple":false}},"args":[]},"applications:add":{"id":"applications:add","description":"add a new Commerce Layer application to CLI config","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:add"],"examples":["$ commercelayer applications:add -o <organizationSlug> -i <clientId> -s <clientSecret> -a <applicationAlias>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"clientId":{"name":"clientId","type":"option","char":"i","description":"application client_id","required":true,"multiple":false},"clientSecret":{"name":"clientSecret","type":"option","char":"s","description":"application client_secret","required":false,"multiple":false},"scope":{"name":"scope","type":"option","char":"S","description":"access token scope (market, stock location)","required":false,"multiple":true},"email":{"name":"email","type":"option","char":"e","description":"customer email","multiple":false,"dependsOn":["password"]},"password":{"name":"password","type":"option","char":"p","description":"customer secret password","multiple":false,"dependsOn":["email"]},"alias":{"name":"alias","type":"option","char":"a","description":"the alias you want to associate to the application","required":true,"multiple":false}},"args":[]},"applications:current":{"id":"applications:current","description":"show the current application","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:current"],"examples":["$ commercelayer applications:current","$ commercelayer app:current --info"],"flags":{"info":{"name":"info","type":"boolean","hidden":true,"allowNo":false,"exclusive":["organization","live"]},"json":{"name":"json","type":"boolean","char":"j","description":"show info in JSON format","allowNo":false,"dependsOn":["info"]}},"args":[]},"applications":{"id":"applications","description":"show a list of all (logged in) available CLI applications","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:list","applications:list","app:available","applications:available","apps"],"examples":["$ commercelayer applications","$ cl applications"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"extra":{"name":"extra","type":"boolean","char":"X","description":"show applications extra info","hidden":true,"allowNo":false},"sort":{"name":"sort","type":"boolean","char":"S","description":"sort applications by Organization and Application name","allowNo":false}},"args":[]},"applications:info":{"id":"applications:info","description":"show application details","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:info"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"json":{"name":"json","type":"boolean","char":"j","description":"show info in JSON format","allowNo":false}},"args":[]},"applications:login":{"id":"applications:login","description":"execute login to a Commerce Layer application","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:login"],"examples":["$ commercelayer applications:login -o <organizationSlug> -i <clientId> -s <clientSecret> -a <applicationAlias>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"clientId":{"name":"clientId","type":"option","char":"i","description":"application client_id","required":true,"multiple":false},"clientSecret":{"name":"clientSecret","type":"option","char":"s","description":"application client_secret","required":false,"multiple":false},"scope":{"name":"scope","type":"option","char":"S","description":"access token scope (market, stock location)","required":false,"multiple":true},"email":{"name":"email","type":"option","char":"e","description":"customer email","multiple":false,"dependsOn":["password"]},"password":{"name":"password","type":"option","char":"p","description":"customer secret password","multiple":false,"dependsOn":["email"]},"alias":{"name":"alias","type":"option","char":"a","description":"the alias you want to associate to the application","required":true,"multiple":false}},"args":[]},"applications:logout":{"id":"applications:logout","description":"remove an application from CLI local configuration","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:logout","app:remove","applications:remove"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke current access token","allowNo":false}},"args":[]},"applications:scope":{"id":"applications:scope","description":"switch scope of current application","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:scope"],"examples":["$ commercelayer <%= command.id %> market:1234","$ cl app:scope market:1234"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"the alias you want to associate to the application","required":false,"multiple":false}},"args":[{"name":"scope","description":"the application scope","required":true}]},"applications:switch":{"id":"applications:switch","description":"switch applications","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["app:switch"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]}},"args":[]},"applications:token":{"id":"applications:token","description":"get a new access token from Commerce Layer API","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","hidden":true,"aliases":["app:token"],"examples":["$ commercelayer applications:token","$ commercelayer app:token --info"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"organization slug","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"api domain","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"kind":{"name":"kind","type":"option","char":"k","description":"application kind","multiple":false,"options":["integration","sales_channel"]},"mode":{"name":"mode","type":"option","char":"m","description":"execution mode","multiple":false,"options":["test","live"]},"live":{"name":"live","type":"boolean","description":"live execution mode","allowNo":false,"exclusive":["mode"]},"id":{"name":"id","type":"option","description":"application id","multiple":false},"alias":{"name":"alias","type":"option","char":"a","description":"the alias associated to the application","multiple":false,"exclusive":["id"]},"appkey":{"name":"appkey","type":"option","description":"CLI application key","hidden":true,"multiple":false,"exclusive":["alias","id","mode","kind"]},"save":{"name":"save","type":"boolean","char":"s","description":"save access token","allowNo":false},"info":{"name":"info","type":"boolean","char":"i","description":"show access token info","allowNo":false},"shared":{"name":"shared","type":"option","char":"S","description":"organization shared secret","hidden":true,"multiple":false,"exclusive":["save"]},"minutes":{"name":"minutes","type":"option","char":"M","description":"minutes to token expiration [2, 120]","hidden":true,"multiple":false,"dependsOn":["shared"]}},"args":[]},"cli:update":{"id":"cli:update","description":"Update Commerce Layer CLI","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["upgrade","latest"],"examples":["<%= config.bin %> <%= command.id %> --version=<version-or-tag>"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"Update CLI to a specific version or tag","required":false,"multiple":false}},"args":[]},"cli:version":{"id":"cli:version","description":"Show installed version of Commerce Layer CLI","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":["version"],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[]},"config:default":{"id":"config:default","description":"reset CLI configuration to default values","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"F","description":"mandatory flag to avoid unintentional config changes","hidden":true,"required":false,"allowNo":false}},"args":[]},"config:del":{"id":"config:del","description":"delete a CLI configuration parameter","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"F","description":"mandatory flag to avoid unintentional config changes","hidden":true,"required":false,"allowNo":false}},"args":[{"name":"param","description":"configuration parameter name","required":true}]},"config:get":{"id":"config:get","description":"get a CLI configuration parameter","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"param","description":"configuration parameter name","required":true}]},"config:set":{"id":"config:set","description":"set a CLI configuration parameter","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"F","description":"mandatory flag to avoid unintentional config changes","hidden":true,"required":false,"allowNo":false}},"args":[{"name":"param","description":"configuration parameter name","required":true},{"name":"value","description":"value to be saved in configuration file","required":true}]},"config:show":{"id":"config:show","description":"show current CLI configuration","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"plugins:available":{"id":"plugins:available","description":"show all available Commerce Layer CLI plugins","strict":true,"pluginName":"@commercelayer/cli","pluginAlias":"@commercelayer/cli","pluginType":"core","aliases":[],"examples":["$ commercelayer plugins:available"],"flags":{"hidden":{"name":"hidden","type":"boolean","char":"H","description":"show also enabled but hidden plugins","hidden":true,"allowNo":false}},"args":[]}}}
{
"name": "@commercelayer/cli",
"description": "Commerce Layer CLI",
"version": "5.5.1-beta.1",
"version": "5.5.1",
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",

@@ -14,6 +14,6 @@ "bin": {

"@commercelayer/cli-dev": "^0.1.10",
"@oclif/test": "^2.1.0",
"@types/chai": "^4.3.0",
"@oclif/test": "^2.1.1",
"@types/chai": "^4.3.3",
"@types/configstore": "^4.0.0",
"@types/inquirer": "^8.1.3",
"@types/inquirer": "^8.2.3",
"@types/mocha": "^9.1.0",

@@ -112,6 +112,6 @@ "@types/node": "^18.6.2",

"dependencies": {
"@commercelayer/cli-core": "^1.5.3-beta.0",
"@commercelayer/cli-core": "^1.5.2",
"@commercelayer/js-auth": "^2.3.0",
"@commercelayer/sdk": "4.15.1",
"@oclif/core": "1.9.6",
"@oclif/core": "^1.14.1",
"@oclif/plugin-autocomplete": "^1.2.0",

@@ -122,3 +122,3 @@ "@oclif/plugin-help": "5.1.12",

"configstore": "^5.0.1",
"inquirer": "^8.2.0",
"inquirer": "^8.2.3",
"lodash": "^4.17.21",

@@ -125,0 +125,0 @@ "tslib": "^2.3.1",

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