Gandi / gandi.cli

⚠ ARCHIVED - Command line interface to Gandi.net products using the public API
http://cli.gandi.net/
GNU General Public License v3.0
347 stars 62 forks source link

FR: Domain Availability - Lookup by price #307

Open larsen161 opened 3 years ago

larsen161 commented 3 years ago

Feature Request I would like to be able to ask gandi what domains are available for "something" and have the domains that are available sorted by price returned to me. It should have some defaults like return the first 20 domains available, sort by price ascending, show price for 1 year duration, etc. It should also allow me to modify these defaults as desired

limit <int>
lessthan <float>
greaterthan <float>
sort asc|desc
country <ISO country code>
currency <ISO currency code>
max_duration <int>

For example:

$ gandi domain find mahatmagandhi
mahatmagandhi.site $0.99
mahatmagandhi.club $4.51
mahatmagandhi.me $6.00
mahatmagandhi.org.uk $9.88
mahatmagandhi.fr $15.00
mahatmagandhi.us $15.50
mahatmagandhi.io $38.00

$ gandi domain find mahatmagandhi limit 5
mahatmagandhi.site $0.99
mahatmagandhi.club $4.51
mahatmagandhi.me $6.00
mahatmagandhi.org.uk $9.88
mahatmagandhi.fr $15.00

$ gandi domain find mahatmagandhi lessthan 10.00
mahatmagandhi.site $0.99
mahatmagandhi.club $4.51
mahatmagandhi.me $6.00
mahatmagandhi.org.uk $9.88

$ gandi domain find mahatmagandhi lessthan 10.00 max_duration 2
mahatmagandhi.site $0.99,$8.00
mahatmagandhi.club $4.51,$34.72
mahatmagandhi.me $6.00,$48.00
mahatmagandhi.org.uk $9.88,$19.76