# buy

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

## Usage

```bash
bdy domain buy [options] [domain|prompt]
```

Search for and buy a domain Required scopes: DOMAIN_MANAGE

## Arguments

| **Argument** | **Description** |
| :--- | :--- |
| `domain\|prompt` | Phrase, full domain or part of it (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 |
| `-d, --tld <tld...>` | Filter tld. Can be passed multiple times or separated by comma. Example: --tld=de --tld=com,io |
| `-o, --owner-behalf` | Buy domain on workspace owner behalf |
| `-s, --sort <name\|price>` | Sort domains by "price" or "name" |
| `-f, --force` | Skip interactive selection and auto-buy the best match |
| `--accept-price` | Accept the price of a premium domain without prompting |
| `-a, --only-available` | Show only available domains |
| `--format <text\|json>` | Output format: json, text. JSON CLI errors: {error:{code,message,hint}}, exit 1. Default: text (choices: "text", "json") |
| `-h, --help` | display help for command |

Documentation for bdy v1.25.34

## Examples

### Pick a domain to buy from matches and suggestions

```bash
bdy domain buy mystartup
```

### Buy a domain without prompting

```bash
bdy domain buy mystartup.com --force
```

### Buy a premium domain without prompting, accepting its price

```bash
bdy domain buy buy.space --force --accept-price
```


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