# yaml

## Usage

```bash
bdy domain yaml|yml [options] <id|name>
```

## Arguments

| **Argument** | **Description** |
| :--- | :--- |
| `id|name` | Domain ID or name (required) |

## Options

| **Option** | **Description** |
| :--- | :--- |
| `--context <name>` | Connection and scope context: default, git, link or a saved name. Overrides the globally active context for this invocation. |
| `--examples` | Show only examples; with this flag --format accepts text, json or jsonl |
| `--verbose` | Show REST API requests, responses, timing and retries on stderr |
| `-w, --workspace <domain>` | Workspace URL handle. Can be set via variable: BUDDY_WORKSPACE |
| `-h, --help` | display help for command |

## Examples

### Save the records of a domain to a file

```bash
bdy domain yaml internal.lan > internal.lan.yml
```


---
Original source: https://buddy.works/docs/cli/domain/yaml