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.


List the domains available in your account.

Terminal window
azioncli domains list

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

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


Create a domain on the Azion platform.

Terminal window
azioncli domains create --name domain --application-id 1234

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

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

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

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

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

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

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

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.


Update an existing domain on the Azion platform.

Terminal window
azioncli domains update --domain-id 1234 --name 'Hello'

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

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

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

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

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

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

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

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

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.


Describe an existing domain on the Azion platform.

Terminal window
azioncli domains describe --domain-id 1234

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

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

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

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


Delete a domain on the Azion platform.

Terminal window
azioncli domains delete --domain-id 1234

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

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