# basemodo domains list

List the App's custom domains, each with its status and DNS records.

```sh
basemodo domains list [OPTIONS]
```

## Arguments

- `--app <APP>`: The App whose custom domains to change. Default: the one named after the current folder.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

List the custom domains of the App of this folder:

```sh
basemodo domains list
```

The same for another App:

```sh
basemodo domains list --app lunch-rota
```

## Output

With `--json`, it prints {"app", "domains": [{"hostname", "url", "status", "records", "problem", "created_at", "verified_at", "certificate_expires_at", "next_attempt_at"}]}.

## From an agent

Basemodo's [MCP](https://basemodo.com/docs/mcp) serves it as the tool [`domains_list`](https://basemodo.com/docs/mcp/tools/domains_list). It only reads, so an agent's client may run it without asking you. Its arguments are the command's, named as JSON keys: `app` (text). It answers what the command prints with `--json`.

## Explained in

- [Domains](https://basemodo.com/docs/domains)