doctl icon indicating copy to clipboard operation
doctl copied to clipboard

Feature Request: doctl compute domain create <domain> --droplet-name <droplet-name>

Open ivanskodje opened this issue 7 years ago • 1 comments

Currently I see no way to fetch and store the IP address from a newly created droplet in order to automate the droplet creation and setting up a domain.

My suggestion is this; add the functionality to specify a droplet name when you are setting up a domain.

Instead of only doing create domain_name --ip-address droplet_ip_address. We could specify the droplet name in a similar manner: create domain_name --droplet-name droplet_name

That being said, I welcome any suggestion for fetching the IP address in its purest form, so that I may use that to run with --ip-address :)

ivanskodje avatar Jul 18 '18 06:07 ivanskodje

@ivanskodje apologies for the delay.

Interesting feature request. I could see it implemented with the droplet id instead of the name.

In the meantime you can do:

doctl compute domain create test.shark.codes --ip-address $(doctl compute droplet get 127650102 --format PublicIPv4 --no-header)

eddiezane avatar Jan 08 '19 23:01 eddiezane