CLI production reads

Console

Layout CLI 0.2 can call any endpoint from your terminal, and read production when you need to see what happened there. It still never changes production or moves money.

What changed

  • layout login --live asks to read production for 12 hours. The console marks the request as production and asks for a sign-in from the last 15 minutes before you can approve it.
  • --live works on listen, deliveries, keys list and webhooks list. Live keys, the live signing secret and every production setting stay in the console.
  • layout api get /v1/whoami calls any REST endpoint and prints the answer. It uses your sandbox key, a token you pass with --token, or LAYOUT_SECRET_KEY. In production it only reads, and only with your own live secret.
  • LAYOUT_SECRET_KEY=sk_test_... runs api and test-order without layout login, so they work in CI.

Why it matters

You can debug a production webhook from your own machine the same way you built it in sandbox, and an agent can try any endpoint without writing a client first.

What to do

Update with npm i -g @layoutplatforms/cli. Routes that act for a person, such as places and carts, need that person's token in --token. See Production and Call the API.

Breaking changes

None.

All changes