1 of 20
2 of 20
3 of 20
4 of 20
5 of 20
6 of 20
7 of 20
8 of 20
9 of 20
10 of 20
11 of 20
12 of 20
13 of 20
14 of 20
15 of 20
16 of 20
17 of 20
18 of 20
19 of 20
20 of 20

doc

Azion CLI domains command and its subcommands

See the command and subcommands that enable the management of your domains on the Azion Platform using Azion CLI.

  1. Listing your domains
  2. Creating a domain
  3. Deleting a domain
  4. Describing a domain
  5. Updating a domain

1. Listing your domains

List the domains available in your account.

Usage

    $ azioncli domains list

Optional flags

details

The --details option displays all relevant fields when listing.

help

The --help option displays more information about the list subcommand.


2. Creating a domain

Creates a domain on the Azion platform.

Usage

    $ azioncli domains create --name domain --application-id 1234

Required flags

name

The --name flag gives the domain’s name.

application-id

The --application-id flag gives the ID for the edge application related to this domain.

Optional flags

help

The --help option displays more information about the create subcommand.

cnames

The --cnames option gives a list of aliases to a domain name.

cname-access-only

The --cname-access-only option informs whether the domain will be accessed only through the CNAMES or not.

digital-certificate-id

The --digital-certificate-id option informs the ID of the digital certificate related to the domain being created.

active

The --active option informs whether the domain is active or not.

in

The --in option informs the filepath to a JSON file containing all attributes of the domain being created.

Note: if the flag --in is used, all information will be accessed through the filepath that was passed through the flag, so the other flags aren’t necessary.


3. Updating a domain

Updates an existing domain on the Azion platform.

Usage

    $ azioncli domains update --domain-id 1234 --name 'Hello'

Required flags

domain-id

The --domain-id flag informs the ID of the domain being updated.

Optional flags

help

The --help option displays more information about the update subcommand.

application-id

The --application-id option informs the ID of the edge application related to the domain being updated.

digital-certificate-id

The --digital-certificate-id option informs the ID of the digital certificate related to the domain being updated.

name

The --name option informs the new value for the name field, that will be updated.

cnames

The --cnames option gives a list of aliases to a domain name.

cname-access-only

The --cname-access-only option informs whether the domain will be accessed only through the CNAMES or not.

active

The --active option informs whether the domain is active or not.

in

The --in option informs the file path to a JSON file containing all attributes of the domain that will be updated.

Note: if the flag --in is given, all information will be accessed through the filepath that was passed through the flag, so the other flags aren’t necessary.


4. Describing a domain

Describes an existing domain on the Azion platform.

Usage

    $ azioncli domains describe --domain-id 1234

Required flags

domain-id

The --domain-id flag informs the ID of the domain that will be described.

Optional flags

out

The --out option exports the output of the describe command to a given filepath.

format

The --format option, followed by the value json, changes the output format to JSON.

help

The --help option displays more information about the describe subcommand.


5. Deleting a domain

Deletes a domain on the Azion platform.

Usage

    $ azioncli domains delete --domain-id 1234

Required flags

domain-id

The --domain-id flag informs the ID of the domain that will be deleted.

Optional flags

help

The --help option displays more information about the delete subcommand.



Didn’t find what you were looking for? Open a support ticket.