CLICommands

cart

snug cart <COMMAND>

Cart and checkout-intent operations.

Subcommands

CommandWhat it does
createCreate a new cart
addAdd or update an item in a cart (creates a current cart when --cart is omitted)
viewView the current cart (or a specified cart)
getGet cart details by ID
update-itemUpdate a cart line item
removeRemove a line item and release its reservation
revalidateRevalidate inventory, price locks, and totals
mergeMerge a guest cart into this cart
price-lockRefresh price locks for eligible lines
shareCreate or revoke a share token
split-checkoutPrepare checkout groups
checkout-readyFreeze the cart for checkout and return a handoff token
abandonedList abandoned carts (admin)
sweep-abandonedTrigger an abandonment sweep (admin)

Run snug cart <command> --help for that command's own options. The global options apply everywhere.

Examples

snug cart create --currency USD
snug cart add sku_world_pass --qty 1 --domain marketplace --source-container container_seller_01 --definition def_world_pass --inventory-owner seller_01
snug cart add sku_world_pass --qty 1 --cart cart_01JCART --domain marketplace --source-container container_seller_01 --definition def_world_pass --inventory-owner seller_01 --currency USD --unit-amount 4999
snug cart view
snug cart get --cart cart_01JCART
snug cart update-item --cart cart_01JCART --line-id line_01 --qty 2
snug cart remove --cart cart_01JCART --line-id line_01
snug cart revalidate --cart cart_01JCART
snug cart merge --cart cart_01JCART --source-cart cart_guest_01
snug cart price-lock --cart cart_01JCART
snug cart share --cart cart_01JCART --mode view
snug cart split-checkout --cart cart_01JCART --group-by seller
snug cart checkout-ready --cart cart_01JCART
snug cart abandoned --since 2026-06-14T00:00:00Z
snug cart sweep-abandoned

Next

On this page