Layout CLI 0.5.0
Version 0.5.0 of the Layout CLI is out. Update with npm i -g @layoutplatforms/cli.
What changed
layout checkgrades your integration from the last 24 hours of sandbox, such as confirming with a code and confirming again afterprice_changed. Each check that does not pass says what to do. It exits 0 when nothing failed and 1 otherwise.--since 2hgrades a shorter window.layout check --forward-to <url>sends your webhook handler four signed test events, with your sandbox signing secret or--secret <whsec>. If your integration readsGET /v1/ordersinstead of webhooks, pass--no-webhooks.layout test-order --place <placeId> [--simulate <ending>]runs a whole sandbox order at a real restaurant, with the ending you choose.
Why it matters
One command tells you whether your integration handles the cases production will send it, before you ask for production.
What to do
Run layout check --forward-to <your webhook URL>, or layout check --no-webhooks, until every check passes. See Check your integration.
Breaking changes
None.