Skip to content

Docs

Quickstart: CLI

Markdown version

You need: Node.js 22 and a Restolayer account.

  1. Install and sign in. The CLI isn't on the npm registry yet: install it as the CLI page says, then sign in. lg login shows a short code; approve it in the browser at https://app.restolayer.com.

    lg login --host https://manage.restolayer.com

    The CLI is an assistant like any other: it does what its scopes and access level allow (Agent access).

  2. Read.

    lg api GET /v1/me
    lg api GET /v1/workspaces
  3. Check it. lg api GET /v1/audit-log (owners) shows what the CLI did, under its own name.

Every command: the CLI. Every route: https://www.restolayer.com/openapi.json.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.