---
title: fastly domain update
summary: Update a domain
url: https://www.fastly.com/documentation/reference/cli/domain/update
---

Update a domain

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--domain-id` | The Domain Identifier (UUID) | Yes | - |
| `--description` | The description for the domain | No | - |
| `--service-id` | The service_id associated with your domain (omit to unset) | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

## Examples

### Update a domain on the currently active service version

Uses the `--version` flag to select the currently active service version and the `--autoclone` flag to enable automate cloning of the service version.

```bash
fastly domain update --name example.com --new-name example.net --version active --autoclone
```

