> ## Documentation Index
> Fetch the complete documentation index at: https://docs.visceralai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI

> Sign in and manage your Visceral account from the terminal.

<Note>
  The CLI is in active development. Command names below are illustrative — check the
  CLI release notes for the current surface.
</Note>

The Visceral CLI handles terminal sign-in and account management. It authenticates
using a device-authorization flow: the CLI opens an approval page in your browser,
you approve, and the CLI receives a token — no pasting keys into the terminal.

## Sign in

```bash theme={null}
visceral login
```

This starts the device flow (`/v1/auth/device/*`), prints a short code, and opens
the approval page. Once you approve in the browser, the CLI is authenticated.

## What you can do

* Sign in and out
* Inspect the account and workspace you're authenticated as
* Manage workspace API keys used by the [SDK](/sdk/installation)

<Card title="API reference — device auth" icon="terminal" href="/api-reference/introduction">
  The endpoints behind the CLI's login flow.
</Card>
