Page cover

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]

  1. Replace [domain-name] with the CDN domain name.

  2. Replace [origin-ip-address] with the origin server IP address.

  3. Replace [origin-port] with the origin server port number.

  4. Replace [billing-type] with the billing type, such as fixed.

  5. Alternatively, run the command without flags to create a CDN distribution interactively using TUI mode:

cldkctl cdn create
  1. Enter the domain name.

  2. Enter the origin IP address.

  3. Enter the port number.

  4. Choose the billing type.

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

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

Flags

This command supports global flags. Refer to the Global Flags section for details.

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).

Last updated