# Quickstart: CLI

**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](https://www.restolayer.com/docs/cli)
   says, then sign in. `lg login` shows a short code; approve it in the browser at https://app.restolayer.com.

   ```bash
   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.**

   ```bash
   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](https://www.restolayer.com/docs/cli). Every route: [https://www.restolayer.com/openapi.json](https://www.restolayer.com/openapi.json).
