Layout CLI 0.4.3
Version 0.4.3 of the Layout CLI is out. Update with npm i -g @layoutplatforms/cli. layout --version prints yours.
What changed
layout webhooks add <url> [--environment sandbox|live|both]says which environment's events the endpoint receives.layout webhooks verify <id> [--live]sends the endpoint the verification event now. It exits 0 when it answers with a 2xx, and exits 1 withendpoint_not_verifiedwhen it does not.layout webhooks listprints the columns ID, STATE, RECEIVES, VERIFICATION, LAST ERROR, URL and EVENTS.layout refusals [--live]lists why the application's keys were refused recently. It needs the capabilityrefusals:read.keys list --live,webhooks list --liveandrefusals --liveno longer needlayout login --live.listenanddeliveriesstill do.- An unknown flag or test place ends with
This is @layoutplatforms/cli 0.4.3; newer versions may support this: npm i -g @layoutplatforms/cli. keys create --replaceprintsNew sandbox key, same client id. The old secret works until <YYYY-MM-DD HH:MM> UTC.layout test-orderruns the new test placetest_place_card_declined_confirm.
What to do
If a script parses the table from layout webhooks list, read --json instead. See Commands.
Breaking changes
None. The new columns in webhooks list are for people; --json is unchanged apart from added fields.