> Markdown version of https://tuna.am/en/docs/cli/domain/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna domain

Manage your domain reservations.

Manage reserved subdomains and your own domains.

In an interactive terminal opens a TUI to reserve, inspect, revalidate and delete domains. Otherwise prints this help: use the subcommands below.

Guide with examples: [Domains](https://tuna.am/en/docs/team/domains.md).

Usage

```bash
tuna domain [flags]

```

| Flag               | Description                                |
| ------------------ | ------------------------------------------ |
| `--api-key string` | Your tuna.am api key (env `TUNA_API_KEY`). |

## Subcommands

| Command                                 | Description                                                                                                                 |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [`tuna domain clear`](#clear)           | Delete all the reserved domains.                                                                                            |
| [`tuna domain delete`](#delete)         | Delete a reserved domains.                                                                                                  |
| [`tuna domain get`](#get)               | Show a domain: status, DNS settings and validation history.                                                                 |
| [`tuna domain list`](#list)             | List all the reserved domains.                                                                                              |
| [`tuna domain redirect`](#redirect)     | Redirect your own domain to its subdomain, e.g. example.com to [www.example.comOpens in a new tab](http://www.example.com). |
| [`tuna domain reserve`](#reserve)       | Reserve a subdomain or add your own domain.                                                                                 |
| [`tuna domain revalidate`](#revalidate) | Restart DNS and TLS validation of your own domain after it failed.                                                          |

## tuna domain clear

Delete all the reserved domains.

Usage

```bash
tuna domain clear [flags]

```

| Flag        | Description                   |
| ----------- | ----------------------------- |
| `-y, --yes` | Skip the confirmation prompt. |

Also accepts the flags of `tuna domain`.

## tuna domain delete

Delete a reserved domains.

Alias: `del`.

Usage

```bash
tuna domain delete [domain] [flags]

```

| Flag        | Description                   |
| ----------- | ----------------------------- |
| `-y, --yes` | Skip the confirmation prompt. |

Also accepts the flags of `tuna domain`.

## tuna domain get

Show a domain: status, DNS settings and validation history.

Alias: `show`.

Usage

```bash
tuna domain get DOMAIN

```

Also accepts the flags of `tuna domain`.

## tuna domain list

List all the reserved domains.

Alias: `ls`.

Usage

```bash
tuna domain list [flags]

```

| Flag     | Description            |
| -------- | ---------------------- |
| `--json` | Output in JSON format. |

Also accepts the flags of `tuna domain`.

## tuna domain redirect

Redirect your own domain to its subdomain, e.g. example.com to [www.example.comOpens in a new tab](http://www.example.com).

Usage

```bash
tuna domain redirect DOMAIN SUBDOMAIN

```

Also accepts the flags of `tuna domain`.

## tuna domain reserve

Reserve a subdomain or add your own domain.

Reserve a subdomain: tuna domain reserve myapp Add your own domain: tuna domain reserve example.com, then create the DNS record it prints.

Alias: `add`.

Usage

```bash
tuna domain reserve NAME [flags]

```

| Flag                   | Description                                                                                                       |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `--redirect-to string` | Your domain only: redirect it to its subdomain, e.g. [www.example.comOpens in a new tab](http://www.example.com). |

Also accepts the flags of `tuna domain`.

## tuna domain revalidate

Restart DNS and TLS validation of your own domain after it failed.

Usage

```bash
tuna domain revalidate DOMAIN

```

Also accepts the flags of `tuna domain`.

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.
