JSPM

@commercelayer/cli-plugin-resources

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q85308F
  • License MIT

Commerce Layer CLI Resources plugin

Package Exports

  • @commercelayer/cli-plugin-resources

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@commercelayer/cli-plugin-resources) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@commercelayer/cli-plugin-resources

Commerce Layer CLI Resources plugin

oclif Version Downloads/week License

Usage

$ npm install -g @commercelayer/cli-plugin-resources
$ cl-resources COMMAND
running command...
$ cl-resources (-v|--version|version)
@commercelayer/cli-plugin-resources/0.0.2 darwin-x64 node-v14.16.0
$ cl-resources --help [COMMAND]
USAGE
  $ cl-resources COMMAND
...

Commands

cl-resources resources:available

list all the available Commerce Layer API resources

USAGE
  $ cl-resources resources:available

ALIASES
  $ cl-resources resources

See code: src/commands/resources/available.ts

cl-resources resources:create

create a new resource

USAGE
  $ cl-resources resources:create

OPTIONS
  -a, --attribute=attribute        define a resource attribute
  -j, --json                       convert output in standard JSON format
  -o, --organization=organization  (required) the slug of your organization
  -r, --relationship=relationship  define a relationship with another resource
  -u, --unformatted                print unformatted JSON output

ALIASES
  $ cl-resources create
  $ cl-resources rc

See code: src/commands/resources/create.ts

cl-resources resources:delete

ddelete a resource

USAGE
  $ cl-resources resources:delete

OPTIONS
  -j, --json                       convert output in standard JSON format
  -o, --organization=organization  (required) the slug of your organization
  -u, --unformatted                print unformatted JSON output

ALIASES
  $ cl-resources delete
  $ cl-resources rd

See code: src/commands/resources/delete.ts

cl-resources resources:filters

shows a list of all available filter predicates

USAGE
  $ cl-resources resources:filters

See code: src/commands/resources/filters.ts

cl-resources resources:list RESOURCE

fetch a collection of resources

USAGE
  $ cl-resources resources:list RESOURCE

ARGUMENTS
  RESOURCE  the resource type

OPTIONS
  -f, --fields=fields              comma separeted list of fields in the format [resource]=field1,field2...
  -i, --include=include            comma separated resources to include
  -j, --json                       convert output in standard JSON format
  -n, --pageSize=pageSize          number of elements per page
  -o, --organization=organization  (required) the slug of your organization
  -p, --page=page                  page number
  -s, --sort=sort                  defines results ordering
  -u, --unformatted                print unformatted JSON output
  -w, --where=where                comma separated list of query filters

ALIASES
  $ cl-resources list
  $ cl-resources rl

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
  -f, --fields=fields              comma separeted list of fields in the format [resource]=field1,field2...
  -i, --include=include            comma separated resources to include
  -j, --json                       convert output in standard JSON format
  -o, --organization=organization  (required) the slug of your organization
  -u, --unformatted                print unformatted JSON output

ALIASES
  $ cl-resources retrieve
  $ cl-resources rr

See code: src/commands/resources/retrieve.ts

cl-resources resources:update

update a resource

USAGE
  $ cl-resources resources:update

OPTIONS
  -j, --json                       convert output in standard JSON format
  -o, --organization=organization  (required) the slug of your organization
  -u, --unformatted                print unformatted JSON output

ALIASES
  $ cl-resources update
  $ cl-resources ru

See code: src/commands/resources/update.ts