Package Exports
- @commercelayer/cli-plugin-token
- @commercelayer/cli-plugin-token/lib/index.js
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-token) 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-token
Usage
$ @commercelayer/cli-plugin-token COMMAND
$ @commercelayer/cli-plugin-token (-v | version | --version) to check the version of the CLI you have installed.
$ @commercelayer/cli-plugin-token [COMMAND] (--help | -h) for detailed information about CLI commands.Commands
@commercelayer/cli-plugin-token token:create@commercelayer/cli-plugin-token token:decode [TOKEN]@commercelayer/cli-plugin-token token:get@commercelayer/cli-plugin-token token:revoke [TOKEN]
@commercelayer/cli-plugin-token token:create
Create a new custom access token.
USAGE
$ @commercelayer/cli-plugin-token token:create
OPTIONS
-m, --minutes=minutes (required) minutes to token expiration [2, 120]
-o, --organization=organization (required) the slug of your organization
-s, --shared=shared (required) organization shared secret
--info show access token infoSee code: src/commands/token/create.ts
@commercelayer/cli-plugin-token token:decode [TOKEN]
Decode a Commerce Layer access token.
USAGE
$ @commercelayer/cli-plugin-token token:decode [TOKEN]
ARGUMENTS
TOKEN the access token to decode
OPTIONS
-o, --organization=organization (required) the slug of your organizationSee code: src/commands/token/decode.ts
@commercelayer/cli-plugin-token token:get
Get a new access token.
USAGE
$ @commercelayer/cli-plugin-token token:get
OPTIONS
-S, --scope=scope access token scope (market, stock location)
-e, --email=email customer email
-i, --clientId=clientId (required) application client_id
-o, --organization=organization (required) the slug of your organization
-p, --password=password customer secret password
-s, --clientSecret=clientSecret application client_secret
--info show access token infoSee code: src/commands/token/get.ts
@commercelayer/cli-plugin-token token:revoke [TOKEN]
Revoke a Commerce Layer access token.
USAGE
$ @commercelayer/cli-plugin-token token:revoke [TOKEN]
ARGUMENTS
TOKEN access token to revoke
OPTIONS
-i, --clientId=clientId (required) application client_id
-o, --organization=organization (required) the slug of your organization
-s, --clientSecret=clientSecret (required) application client_secretSee code: src/commands/token/revoke.ts