# eggox login

Log in to Eggox from this machine. A browser opens once.

```
eggox login [--server URL]
```

Opens a browser on Eggox, where you allow the command line to work with
your games. When you come back, the login is saved in
`~/.config/eggox/credentials.json` (readable by you alone) and renews
itself; you do not log in again until you `eggox logout`.

If no browser opens, the command prints the address to visit.

## Options

| option | does |
| --- | --- |
| `--server URL` | log in to another Eggox, for example `https://staging.eggox.net`. It becomes the default for later commands |

## Examples

```
eggox login
eggox login --server https://staging.eggox.net
```

## What is allowed

The login carries the `games` scope: your games, your bag, and the stock
of your games. Nothing else on your account. Publishing goes through the
same login and needs a verified account.

