@commercelayer/cli-plugin-token
v6.2.1
Published
Commerce Layer CLI Token plugin
Downloads
212
Readme
commercelayer-cli-plugin-token
Usage
commercelayer COMMAND
commercelayer [COMMAND] (--help | -h) for detailed information about plugin commands.
Commands
commercelayer token:decode TOKEN
commercelayer token:generate
commercelayer token:get
commercelayer token:revoke TOKEN
commercelayer token:decode TOKEN
Decode a Commerce Layer access token.
USAGE
$ commercelayer token:decode TOKEN
ARGUMENTS
TOKEN the access token to be decoded
DESCRIPTION
decode a Commerce Layer access token
ALIASES
$ commercelayer token:info
EXAMPLES
$ commercelayer token:decode <accessToken>
$ cl token:info <accessToken>
See code: src/commands/token/decode.ts
commercelayer token:generate
Start a wizard to generate a custom access token.
USAGE
$ commercelayer token:generate [-i] [-c]
FLAGS
-c, --check check generated access token
-i, --info print generated token info
DESCRIPTION
start a wizard to generate a custom access token
EXAMPLES
$ commercelayer token:generate
$ cl token:generate
See code: src/commands/token/generate.ts
commercelayer token:get
Get a new access token.
USAGE
$ commercelayer token:get [-o <value>] (-s <value> -i <value>) [-S <value>... ] [-e <value> -p <value>]
[--info]
FLAGS
-S, --scope=<value>... access token scope (market, stock location)
-e, --email=<value> customer email
-i, --clientId=<value> (required) application client_id
-o, --organization=<value> the slug of your organization
-p, --password=<value> customer secret password
-s, --clientSecret=<value> application client_secret
--info show access token info
DESCRIPTION
get a new access token
EXAMPLES
$ commercelayer token:get -o <organizationSlug> -i <clientId> -s <clientSecret>
$ cl token:get -o <organizationSlug> -i <clientId> -S <scope> --info
$ cl token:get -i <clientId> -s <clientSecret>
See code: src/commands/token/get.ts
commercelayer token:revoke TOKEN
Revoke a Commerce Layer access token.
USAGE
$ commercelayer token:revoke TOKEN [-o <value>] (-s <value> -i <value>) [-S <value>... ]
ARGUMENTS
TOKEN access token to revoke
FLAGS
-S, --scope=<value>... access token scope
-i, --clientId=<value> (required) application client_id
-o, --organization=<value> the slug of your organization
-s, --clientSecret=<value> application client_secret
DESCRIPTION
revoke a Commerce Layer access token
EXAMPLES
$ commercelayer token:revoke -o <organizationSlug> <accessToken> -i <clientId>
$ cl token:revoke -o <organizationSlug> <accessToken> -i <clientId> -s <clientSecret>
See code: src/commands/token/revoke.ts