@commercelayer/cli-plugin-checkout
Commerce Layer CLI Checkout plugin
Usage
$ cl-checkout COMMAND
$ cl-checkout [COMMAND] (--help | -h) for detailed information about plugin commands.
Commands
cl-checkout checkout
Create checkout URLs.
USAGE
$ cl-checkout checkout -o <value> -a <value> [--open] [-m <value> | [-O <value> | -S <value> | -B <value>]]
[-c <value> | ] [-e <value> | ]
FLAGS
-B, --bundle=<value>... a bundle code
-O, --order=<value> an order id
-S, --sku=<value>... an SKU code
-a, --accessToken=<value> (required)
-c, --coupon=<value> a promo code
-e, --email=<value> a customer email
-m, --market=<value> a market number
-o, --organization=<value> (required) the slug of your organization
--open open checkout URL in default browser
DESCRIPTION
create checkout URLs
EXAMPLES
$ commercelayer checkout -O <order-id>
$ cl checkout -S <sku-code> -m <market-id> -c <coupon-code> -e <email-address>
$ cl checkout -S <sku-code-1> -S <sku-code-2> -m <market-id>
See code: src/commands/checkout/index.ts
cl-checkout checkout:order ID
Create checkout URLs starting from an existing order.
USAGE
$ cl-checkout checkout:order [ID] -o <value> -a <value> [--open]
ARGUMENTS
ID unique id of the order
FLAGS
-a, --accessToken=<value> (required)
-o, --organization=<value> (required) the slug of your organization
--open open checkout URL in default browser
DESCRIPTION
create checkout URLs starting from an existing order
See code: src/commands/checkout/order.ts