Layout CLI 0.4.2
Version 0.4.2 of the Layout CLI is out. Update with npm i -g @layoutplatforms/cli.
What changed
layout webhooks add <https url> [--events <a,b>]adds an endpoint and verifies it, andlayout webhooks remove <id> --yesremoves one. Both work only while your application is not yet approved. After that, use the console.layout webhooks listmasks the sandbox signing secret, such aswhsec_...wxyz. Add--show-secretto print it whole.--apptakes an application's name as well as its id.layout usagelists every sandbox allowanceGET /v1/usagelists, with today's use.layout test-orderalso runstest_place_needs_choices,test_place_needs_location,test_place_pickup_laterandtest_place_delivery_far.
Why it matters
You can set up a webhook endpoint for sandbox without leaving the terminal.
What to do
If a script reads the signing secret from layout webhooks list --json, add --show-secret. If a script reads sandbox or live from layout usage --json, read daily instead. See Commands.
Breaking changes
layout webhooks listmasks the signing secret unless you add--show-secret, in--jsontoo.layout usage --jsonno longer carries thesandboxandliveblocks whendailyis there.