Docs
Quickstart: CLI
You need: Node.js 22 and a Restolayer account.
Install and sign in. The CLI isn't on the npm registry yet: install it as the CLI page says, then sign in.
lg loginshows a short code; approve it in the browser at https://app.restolayer.com.lg login --host https://manage.restolayer.comThe CLI is an assistant like any other: it does what its scopes and access level allow (Agent access).
Read.
lg api GET /v1/me lg api GET /v1/workspaces- 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.