---
title: "ezgh domains register"
description: "Register a domain, paid by card."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh domains register

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh domains register <domain> [--years n] [--nameservers h1,h2…] [--no-dnssec] [--no-auto-renew] [--price p] [--accept-terms] [--wait] [flags]
```

Register a domain for `--years` (1 to 10), charged to the organization's card now. With EZGH DNS (the default), it gets a zone in the project and DNSSEC (`--no-dnssec` leaves it off); `--nameservers` gives 2 to 13 nameservers of your own instead, without DNSSEC. Auto-renew is on unless `--no-auto-renew`. The registrant is the organization's contact (`ezgh domains contact set`).

It checks the price, shows it with the registration terms, and asks on a terminal. `--price` is the total you agree to pay and `--accept-terms` accepts the terms, both required without a terminal. A price that has changed is refused before anything is charged.

Part of [`ezgh domains`](/cli/reference/domains).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--accept-terms` | boolean |  | accept the registration terms (required without a terminal) |
| `--nameservers` | strings, comma-separated or repeated |  | 2 to 13 nameservers of your own, instead of EZGH DNS |
| `--no-auto-renew` | boolean |  | don't renew automatically |
| `--no-dnssec` | boolean |  | leave DNSSEC off |
| `--price` | string |  | the total you agree to pay, in USD (required without a terminal) |
| `--wait` | boolean |  | wait until it's registered, and print it then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |
| `--years` | int | `1` | the registration term, 1 to 10 |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/domains-register/index.mdx
