CLICommands
cart
snug cart <COMMAND>Cart and checkout-intent operations.
Subcommands
| Command | What it does |
|---|---|
create | Create a new cart |
add | Add or update an item in a cart (creates a current cart when --cart is omitted) |
view | View the current cart (or a specified cart) |
get | Get cart details by ID |
update-item | Update a cart line item |
remove | Remove a line item and release its reservation |
revalidate | Revalidate inventory, price locks, and totals |
merge | Merge a guest cart into this cart |
price-lock | Refresh price locks for eligible lines |
share | Create or revoke a share token |
split-checkout | Prepare checkout groups |
checkout-ready | Freeze the cart for checkout and return a handoff token |
abandoned | List abandoned carts (admin) |
sweep-abandoned | Trigger 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-abandonedNext
- cart guide - what the service does and when to reach for it.
- API reference - every endpoint these commands call.
- CLI reference - global options, output modes, and exit codes.