# 5050 host

> Add, list, drain and maintain hosts.

Add, list, drain and maintain hosts.

## Usage

```sh
5050 host add [--roles app]
5050 host list
5050 host drain HOST
5050 host maintenance HOST on|off
```

## Flags

| Flag | Meaning |
|---|---|
| `--roles` | Roles for the new host: `app`, `ingress`, `data`, `build` |
| `--name NAME` | With `add`: a name for the host |

## Details

- Admin only. `add` prints a single-use join command valid for 1 hour. See [Add a host](https://5050cloud.com/docs/guides/add-a-host).

## Railway equivalent

Railway has no equivalent: hosts are its servers.

Every command also accepts the [global options](https://5050cloud.com/docs/cli/global-options).
