# kosa8 cloud preview domain

Serve a preview at your own hostname (custom domains)

Points a hostname of yours (app.example.com) at a sandbox's open preview. Add
it here, then the CNAME (and any TXT) records it lists at your DNS provider;
once they are seen and its certificate is issued, its status is active and
https://app.example.com/ serves the port. Open the preview first
(kosa8 cloud preview open ID PORT).

Also known as: `domains`

## Example

```
  kosa8 cloud preview domain add sbx_abc 3000 app.example.com
  kosa8 cloud preview domain get sbx_abc 3000 app.example.com
  kosa8 cloud preview domain ls sbx_abc 3000
  kosa8 cloud preview domain rm sbx_abc 3000 app.example.com
```

## Subcommands

- [`kosa8 cloud preview domain add`](https://docs.kosa8.com/reference/cloud-preview-domain-add.md): Add a custom domain to a preview and print the DNS records to set
- [`kosa8 cloud preview domain get`](https://docs.kosa8.com/reference/cloud-preview-domain-get.md): Show a custom domain's status and the DNS records it still needs
- [`kosa8 cloud preview domain ls`](https://docs.kosa8.com/reference/cloud-preview-domain-ls.md): List a preview's custom domains
- [`kosa8 cloud preview domain rm`](https://docs.kosa8.com/reference/cloud-preview-domain-rm.md): Remove a custom domain from a preview

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