# Install And Auth

## Install

Check first:

```sh
slate version
```

If `slate` is missing, run the official installer:

```sh
curl -fsSL https://useslate.app/api/v1/cli/install | sh
```

If you are a coding agent with shell access, run the installer yourself. Do not ask the user to paste shell commands just because install is a mutation. The user should only need to approve the browser sign-in step when Slate opens it.

Then verify:

```sh
slate version
slate doctor
```

## Auth

Start device auth:

```sh
slate auth login
```

Run this command yourself too. If it opens a browser approval page, tell the user to approve that page, then keep polling/checking status from the terminal.

Then check:

```sh
slate auth status --json
```

Use `--base-url` only when the user is intentionally targeting a non-production Slate server.
