# inboxjot domains

Add and verify sending domains.

## domains add

Add a domain and print its DNS records.

```sh
inboxjot domains add <DOMAIN> [options]
```

| Argument | Description                              |
| -------- | ---------------------------------------- |
| `DOMAIN` | Domain name, such as acme.com. Required. |

| Option                      | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--region <REGION>`         | AWS region that sends the email, such as us-east-1. |
| `--return-path <SUBDOMAIN>` | Subdomain for bounces, such as send.                |

```sh
inboxjot domains add acme.com
inboxjot domains add acme.com --region eu-west-1 --return-path send
```

## domains list

List domains.

```sh
inboxjot domains list [options]
```

| Option                | Description                                 |
| --------------------- | ------------------------------------------- |
| `-n, --limit <LIMIT>` | Show at most this many rows. Default: `50`. |
| `--all`               | Show every row, one page after another.     |
| `--after <CURSOR>`    | Show the rows after this cursor.            |
| `--before <CURSOR>`   | Show the rows before this cursor.           |

```sh
inboxjot domains list
```

## domains inspect

Show a domain and its DNS records.

```sh
inboxjot domains inspect <DOMAIN>
```

| Argument | Description                                    |
| -------- | ---------------------------------------------- |
| `DOMAIN` | Domain name or ID, such as acme.com. Required. |

```sh
inboxjot domains inspect acme.com
```

## domains records

Print the DNS records of a domain.

```sh
inboxjot domains records <DOMAIN> [options]
```

| Argument | Description                                    |
| -------- | ---------------------------------------------- |
| `DOMAIN` | Domain name or ID, such as acme.com. Required. |

| Option              | Description                                              |
| ------------------- | -------------------------------------------------------- |
| `--format <FORMAT>` | Output format. One of `table`, `bind`. Default: `table`. |

```sh
inboxjot domains records acme.com
inboxjot domains records acme.com --format bind > acme.zone
```

## domains verify

Check the DNS records of a domain.

```sh
inboxjot domains verify <DOMAIN> [options]
```

| Argument | Description                                    |
| -------- | ---------------------------------------------- |
| `DOMAIN` | Domain name or ID, such as acme.com. Required. |

| Option                | Description                                                |
| --------------------- | ---------------------------------------------------------- |
| `--wait`              | Check again every 10 seconds until the domain is verified. |
| `--timeout <TIMEOUT>` | Stop waiting after this long. Default: `30m`.              |

```sh
inboxjot domains verify acme.com --wait
```

## domains delete

Delete a domain.

```sh
inboxjot domains delete <DOMAIN>
```

| Argument | Description                                    |
| -------- | ---------------------------------------------- |
| `DOMAIN` | Domain name or ID, such as acme.com. Required. |

```sh
inboxjot domains delete acme.com
```
