# kosa8 cloud preview domain add

Add a custom domain to a preview and print the DNS records to set

## Usage

```
kosa8 cloud preview domain add ID PORT HOSTNAME
```

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--ssl-method` | string | how the certificate is validated: http (the CNAME) or txt (a TXT record, before the CNAME moves) | `http` |

## Example

```
  kosa8 cloud preview domain add sbx_abc 3000 app.example.com
  kosa8 cloud preview domain add sbx_abc 3000 app.example.com --ssl-method txt
```

---
Source: https://docs.kosa8.com/reference/cloud-preview-domain-add/
