Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@commercelayer/cli-plugin-resources
Advanced tools
Commerce Layer CLI Resources plugin
intro intro intro intro
$ npm install -g @commercelayer/cli-plugin-resources
$ cl-resources COMMAND
running command...
$ cl-resources (-v|--version|version)
@commercelayer/cli-plugin-resources/0.6.6 darwin-x64 node-v15.13.0
$ cl-resources --help [COMMAND]
USAGE
$ cl-resources COMMAND
...
cl-resources resources:available
cl-resources resources:create RESOURCE
cl-resources resources:delete RESOURCE [ID]
cl-resources resources:filters
cl-resources resources:get RESOURCE [ID]
cl-resources resources:list RESOURCE
cl-resources resources:retrieve RESOURCE [ID]
cl-resources resources:update RESOURCE [ID]
cl-resources resources:available
list all the available Commerce Layer API resources
USAGE
$ cl-resources resources:available
ALIASES
$ cl-resources res:available
See code: src/commands/resources/available.ts
cl-resources resources:create RESOURCE
create a new resource
USAGE
$ cl-resources resources:create RESOURCE
ARGUMENTS
RESOURCE the resource type
OPTIONS
-a, --attribute=attribute define a resource attribute
-m, --metedata=metedata define a metadata attribute or a set of metadata attributes
-o, --organization=organization (required) the slug of your organization
-r, --relationship=relationship define a relationship with another resource
ALIASES
$ cl-resources create
$ cl-resources rc
$ cl-resources res:create
See code: src/commands/resources/create.ts
cl-resources resources:delete RESOURCE [ID]
delete a resource
USAGE
$ cl-resources resources:delete RESOURCE [ID]
ARGUMENTS
RESOURCE the resource type
ID id of the resource to retrieve
OPTIONS
-o, --organization=organization (required) the slug of your organization
ALIASES
$ cl-resources delete
$ cl-resources rd
$ cl-resources res:delete
See code: src/commands/resources/delete.ts
cl-resources resources:filters
shows a list of all available filter predicates
USAGE
$ cl-resources resources:filters
ALIASES
$ cl-resources res:filters
See code: src/commands/resources/filters.ts
cl-resources resources:get RESOURCE [ID]
retrieve or list resources
USAGE
$ cl-resources resources:get RESOURCE [ID]
ARGUMENTS
RESOURCE the resource type
ID id of the resource to retrieve
OPTIONS
-X, --save-path=save-path save command output to file and create missing path directories
-f, --fields=fields comma separeted list of fields in the format [resource]=field1,field2...
-i, --include=include comma separated resources to include
-n, --pageSize=pageSize number of elements per page
-o, --organization=organization (required) the slug of your organization
-p, --page=page page number
-r, --raw print out the raw API response
-s, --sort=sort defines results ordering
-w, --where=where comma separated list of query filters
-x, --save=save save command output to file
ALIASES
$ cl-resources get
$ cl-resources res:get
See code: src/commands/resources/get.ts
cl-resources resources:list RESOURCE
fetch a collection of resources
USAGE
$ cl-resources resources:list RESOURCE
ARGUMENTS
RESOURCE the resource type
OPTIONS
-X, --save-path=save-path save command output to file and create missing path directories
-f, --fields=fields comma separeted list of fields in the format [resource]=field1,field2...
-i, --include=include comma separated resources to include
-n, --pageSize=pageSize number of elements per page
-o, --organization=organization (required) the slug of your organization
-p, --page=page page number
-r, --raw print out the raw API response
-s, --sort=sort defines results ordering
-w, --where=where comma separated list of query filters
-x, --save=save save command output to file
ALIASES
$ cl-resources list
$ cl-resources rl
$ cl-resources res:list
EXAMPLES
$ commercelayer resources:list customers -f id,email -i customer_group -s updated_at
$ cl list -i customer_group -f customer_groups/name -w customer_group_name_eq="GROUP NAME"
$ cl list -p 5 -n 10 -s -created_at
See code: src/commands/resources/list.ts
cl-resources resources:retrieve RESOURCE [ID]
fetch a single resource
USAGE
$ cl-resources resources:retrieve RESOURCE [ID]
ARGUMENTS
RESOURCE the resource type
ID id of the resource to retrieve
OPTIONS
-X, --save-path=save-path save command output to file and create missing path directories
-f, --fields=fields comma separeted list of fields in the format [resource]=field1,field2...
-i, --include=include comma separated resources to include
-o, --organization=organization (required) the slug of your organization
-r, --raw print out the raw API response
-x, --save=save save command output to file
ALIASES
$ cl-resources retrieve
$ cl-resources rr
$ cl-resources res:retrieve
See code: src/commands/resources/retrieve.ts
cl-resources resources:update RESOURCE [ID]
update a resource
USAGE
$ cl-resources resources:update RESOURCE [ID]
ARGUMENTS
RESOURCE the resource type
ID id of the resource to retrieve
OPTIONS
-M, --metadata-replace=metadata-replace define a metadata attribute and replace every item already presente in the
remote resource
-a, --attribute=attribute define a resource attribute
-m, --metadata=metadata define a metadata attribute and merge it with the metadata already present in
the remote resource
-o, --organization=organization (required) the slug of your organization
-r, --relationship=relationship define a relationship with another resource
ALIASES
$ cl-resources update
$ cl-resources ru
$ cl-resources res:update
See code: src/commands/resources/update.ts
FAQs
Commerce Layer CLI Resources plugin
The npm package @commercelayer/cli-plugin-resources receives a total of 222 weekly downloads. As such, @commercelayer/cli-plugin-resources popularity was classified as not popular.
We found that @commercelayer/cli-plugin-resources demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.