---
url: https://void.cloud/reference/cli/domains.md
description: >-
  Add, remove, and check custom domains for a hosted project or a direct
  Cloudflare deploy.
---

# Custom Domains {#custom-domains}

## `void domain add` {#void-domain-add}

```
void domain add <hostname> [--project <name>]
```

To serve your app at `shop.example.com`, run:

```sh
void domain add shop.example.com
```

For a hosted project, add the DNS records printed by the CLI. For a direct Cloudflare deployment, Void adds the domain route immediately and Cloudflare manages DNS and TLS in the selected account’s zone. If your config has a legacy `route` field, convert it to a `routes` array first. Register each subdomain individually.

## `void domain delete` {#void-domain-delete}

```
void domain delete <hostname> [--project <name>]
```

Direct Cloudflare projects apply the change immediately. Deleting the final custom domain uses your browser session from `void cloudflare login` or an API token with **Workers Editor** and **Workers Routes Write** for the affected zone. If Cloudflare rejects the change, Void attempts to restore the previous domain configuration and reports whether recovery succeeded.

## `void domain list` {#void-domain-list}

```
void domain list [--project <name>]
```

List all custom domains. Hosted projects show active/pending state from the platform; direct Cloudflare projects list the custom-domain routes currently configured in `void.config.ts`.

## `void domain status` {#void-domain-status}

```
void domain status <hostname> [--project <name>] [--verbose]
```

Show domain verification and TLS certificate status, including DNS records to configure and any required action. Domains activate automatically once verification and certificate issuance finish.

On direct Cloudflare, status shows whether the route is configured in `void.config.ts`. Check certificate issuance in the Cloudflare dashboard. The `--project` option applies to hosted projects.
