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:
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]
Replace [domain-name] with the CDN domain name.
Replace [origin-ip-address] with the origin server IP address.
Replace [origin-port] with the origin server port number.
Replace [billing-type] with the billing type, such as fixed.
Alternatively, run the command without flags to create a CDN distribution interactively using TUI mode:
cldkctl cdn createEnter the domain name.
Enter the origin IP address.
Enter the port number.
Choose the billing type.

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

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

Flags
-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).
Last updated
