> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/guidance-for-enterprise/cloudeka-api-list/command-reference/cldkctl-cdn/create.md).

# create

The cdn create command creates a new CDN (Content Delivery Network) distribution for a project. This command requires the project ID, distribution name, and optional description.

## Usage

```
cldkctl cdn create [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. A CDN distribution can be created using flags:

```
cldkctl cdn create --domain [domain-name] --ip [origin-ip-address] --port [origin-port] --billing-type [billing-type]
```

2. Replace \[domain-name] with the CDN domain name.
3. Replace \[origin-ip-address] with the origin server IP address.
4. Replace \[origin-port] with the origin server port number.
5. Replace \[billing-type] with the billing type, such as fixed.
6. Alternatively, run the command without flags to create a CDN distribution interactively using TUI mode:

```
cldkctl cdn create
```

7. Enter the domain name.
8. Enter the origin IP address.
9. Enter the port number.
10. Choose the billing type.

<figure><img src="/files/Bn0nkAOTBG41g5PKd5lS" alt=""><figcaption></figcaption></figure>

11. Confirm the creation of DNS by pressing y to confirm or n to cancel.

<figure><img src="/files/IASIcpF3mLb1UDHmHiZJ" alt=""><figcaption></figcaption></figure>

12. Once completed successfully, a message **“✓ CDN created successfully!”** will appear in the terminal.

<figure><img src="/files/kXa67Z8ge90rwM4So3pg" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/guidance-for-enterprise/cloudeka-api-list/global-flags.md). Refer to the Global Flags section for details.
{% endhint %}

| Flag                      | Description                             |
| ------------------------- | --------------------------------------- |
| -b, --billing-type string | Billing type (fixed) (default "fixed"). |
| -d, --domain string       | CDN domain name.                        |
| -h, --help                | Help for cdn create command.            |
| -i, --ip string           | Origin server IP address.               |
| --port int                | Origin server port (default 80).        |
