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.
Listing your domains
Section titled Listing your domainsList the domains available in your account.
Usage
Section titled Usage azioncli domains list
Optional flags
Section titled Optional flagsdetails
Section titled detailsThe --details
option displays all relevant fields when listing.
The --help
option displays more information about the list
subcommand.
Creating a domain
Section titled Creating a domainCreate a domain on the Azion platform.
Usage
Section titled Usage azioncli domains create --name domain --application-id 1234
Required flags
Section titled Required flagsThe --name
flag gives the domain’s name.
application-id
Section titled application-idThe --application-id
flag gives the ID for the edge application related to this domain.
Optional flags
Section titled Optional flagsThe --help
option displays more information about the create
subcommand.
cnames
Section titled cnamesThe --cnames
option gives a list of aliases to a domain name.
cname-access-only
Section titled cname-access-onlyThe --cname-access-only
option informs whether the domain will be accessed only through the CNAMES or not.
digital-certificate-id
Section titled digital-certificate-idThe --digital-certificate-id
option informs the ID of the digital certificate related to the domain being created.
active
Section titled activeThe --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.
Updating a domain
Section titled Updating a domainUpdate an existing domain on the Azion platform.
Usage
Section titled Usage azioncli domains update --domain-id 1234 --name 'Hello'
Required flags
Section titled Required flagsdomain-id
Section titled domain-idThe --domain-id
flag informs the ID of the domain being updated.
Optional flags
Section titled Optional flagsThe --help
option displays more information about the update
subcommand.
application-id
Section titled application-idThe --application-id
option informs the ID of the edge application related to the domain being updated.
digital-certificate-id
Section titled digital-certificate-idThe --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.
cnames
Section titled cnamesThe --cnames
option gives a list of aliases to a domain name.
cname-access-only
Section titled cname-access-onlyThe --cname-access-only
option informs whether the domain will be accessed only through the CNAMES or not.
active
Section titled activeThe --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.
Describing a domain
Section titled Describing a domainDescribe an existing domain on the Azion platform.
Usage
Section titled Usage azioncli domains describe --domain-id 1234
Required flags
Section titled Required flagsdomain-id
Section titled domain-idThe --domain-id
flag informs the ID of the domain that will be described.
Optional flags
Section titled Optional flagsThe --out
option exports the output of the describe
command to a given filepath.
format
Section titled formatThe --format
option, followed by the value json
, changes the output format to JSON.
The --help
option displays more information about the describe
subcommand.
Deleting a domain
Section titled Deleting a domainDelete a domain on the Azion platform.
Usage
Section titled Usage azioncli domains delete --domain-id 1234
Required flags
Section titled Required flagsdomain-id
Section titled domain-idThe --domain-id
flag informs the ID of the domain that will be deleted.
Optional flags
Section titled Optional flagsThe --help
option displays more information about the delete
subcommand.