@commercelayer/cli-plugin-checkout
Commerce Layer CLI Checkout plugin
Usage
Commands
cl-checkout checkout
Create checkout URLs.
USAGE
$ cl-checkout checkout
OPTIONS
-B, --bundle=bundle a bundle code
-O, --order=order an order id
-S, --sku=sku an SKU code
-a, --accessToken=accessToken (required)
-c, --coupon=coupon a promo code
-e, --email=email a customer email
-m, --market=market a market number
-o, --organization=organization (required) the slug of your organization
--open open checkout URL in default browser
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
ARGUMENTS
ID unique id of the order
OPTIONS
-a, --accessToken=accessToken (required)
-o, --organization=organization (required) the slug of your organization
--open open checkout URL in default browser
See code: src/commands/checkout/order.ts