# 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-individual/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).        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/guidance-for-individual/cloudeka-api-list/command-reference/cldkctl-cdn/create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
