@commercelayer/cli-plugin-checkout
Commerce Layer CLI Checkout plugin
Usage
$ cl-checkout COMMAND
$ cl-checkout (-v | version | --version) to check the version of the CLI you have installed.
$ cl-checkout [COMMAND] (--help | -h) for detailed information about CLI commands.
Commands
cl-checkout checkout
Create checkout URLs.
USAGE
$ cl-checkout checkout
OPTIONS
-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
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