# openrail host

> Add, list, drain and maintain hosts.

Add, list, drain and maintain hosts.

## Usage

```sh
openrail host add [--roles app]
openrail host list
openrail host drain HOST
openrail 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://openrail.app/docs/guides/add-a-host).

## Railway equivalent

Railway has no equivalent: hosts are its servers.

Every command also accepts the [global options](https://openrail.app/docs/cli/global-options).
