Layout CLI 0.4.2

ConsoleBreaking

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, and layout webhooks remove <id> --yes removes one. Both work only while your application is not yet approved. After that, use the console.
  • layout webhooks list masks the sandbox signing secret, such as whsec_...wxyz. Add --show-secret to print it whole.
  • --app takes an application's name as well as its id.
  • layout usage lists every sandbox allowance GET /v1/usage lists, with today's use.
  • layout test-order also runs test_place_needs_choices, test_place_needs_location, test_place_pickup_later and test_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 list masks the signing secret unless you add --show-secret, in --json too.
  • layout usage --json no longer carries the sandbox and live blocks when daily is there.

All changes