# allyhub auth login

> Sign this computer in to AllyHub, for the cloud tools; once per computer, shared with AllyHub Studio

Source: https://allyhub.com/docs/reference/cli/auth-login · AllyHub 0.10.0
Index of all docs: https://allyhub.com/llms.txt

## Usage

```bash
allyhub auth login [options]
```

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `--wait` | boolean |  | Wait here for the browser (default in a terminal); --no-wait waits 5 minutes in the background and returns at once (default for an agent), then allyhub auth status says when it is done |
| `--no-browser` | boolean | `true` | Open the browser; --no-browser only prints the address |
| `--device` | boolean | `false` | Sign in with a code entered in a browser elsewhere (RFC 8628's device flow), for a computer with no browser of its own |

## Global options

`--json`: print the result as JSON.

## Output

With `--json`, the command prints an object with these fields:

| Field | Type | What it is |
| --- | --- | --- |
| `status` | `signed-in`, `waiting` |  |
| `email` | string |  |
| `url` | string |  |
| `hosts` | object |  |

## Examples

```bash
allyhub auth login
allyhub auth login --no-wait --no-browser
allyhub auth login --device
```

## Exit codes

`0` when it succeeds; the others are listed in [Exit codes](https://allyhub.com/docs/reference/cli/exit-codes.md).

## In the work

**setup**: This computer, the account and AllyHub's skills

[`skills`](https://allyhub.com/docs/reference/cli/skills.md) → [`skills show`](https://allyhub.com/docs/reference/cli/skills-show.md) → `auth login` → [`auth status`](https://allyhub.com/docs/reference/cli/auth-status.md) → [`orgs list`](https://allyhub.com/docs/reference/cli/orgs-list.md) → [`orgs use`](https://allyhub.com/docs/reference/cli/orgs-use.md) → [`doctor`](https://allyhub.com/docs/reference/cli/doctor.md) → [`doctor extensions`](https://allyhub.com/docs/reference/cli/doctor-extensions.md)
