# 5050 domain

> Generate a domain or add a custom domain for the linked service.

Generate a domain or add a custom domain for the linked service.

## Usage

```sh
5050 domain
5050 domain DOMAIN [--port PORT]
5050 domain list
5050 domain delete DOMAIN
5050 domain status DOMAIN
5050 domain update DOMAIN --port PORT
5050 domain certificate retry DOMAIN
```

## Flags

| Flag | Meaning |
|---|---|
| `--port PORT` | Target port inside the container |

## Details

- With no argument it generates a name under the install's base domain. With a domain it prints the DNS records to create. See [Custom domains and HTTPS](https://5050cloud.com/docs/guides/custom-domains).

## Examples

```sh
5050 domain
5050 domain shop.example.com
```

## Railway equivalent

`railway domain` works the same way through the [railway alias](https://5050cloud.com/docs/cli/railway-alias).

Every command also accepts the [global options](https://5050cloud.com/docs/cli/global-options).
