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
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.
Related documentation
- Edge applications command and its subcommands
- Edge functions command and its subcommands
- Managing your Edge Functions with Azion CLI
- Creating an edge application with Azion CLI
Didn’t find what you were looking for? Open a support ticket.