Layout CLI 0.4.3
Version 0.4.3 of the Layout CLI is out. Update with npm i -g @layoutplatforms/cli.
What changed
layout webhooks add <url> --environment sandbox|live|bothchooses which events the endpoint receives. The default isboth.layout webhooks verify <id>sends the endpoint the verification event now, and exits 1 withendpoint_not_verifiedwhen it does not answer with a 2xx.layout refusalslists why your application's keys were refused recently. Add--livefor production.layout test-orderruns the new test restauranttest_place_card_declined_confirm.
Why it matters
You can point a development tunnel at sandbox events only, check an endpoint after you fix it, and see why a request was refused, all from the terminal.
What to do
Nothing. See Commands.
Breaking changes
None.