metal-cli icon indicating copy to clipboard operation
metal-cli copied to clipboard

feature request: spot prices

Open colemickens opened this issue 5 years ago • 1 comments

I have a weird little packet.sh with a hand rolled client that I can almost get rid of. One remaining functionality that I use it for is list spot prices for machines. It just dumps it as JSON, but it might be nice to have CLI support:

packet spot prices --loc "ams1" # filters by location
packet spot prices --sku "baremetal_1e" # filters to single sku
packet spot prices --sku "baremetal_1e" --loc "ams1" # both

(Maybe spot_prices? Not sure if there's other "spot" commands, maybe for spot reservations?)

colemickens avatar Jan 13 '20 01:01 colemickens

Hey @colemickens you can also use https://github.com/t0mk/packetjq for this if you want. I illustrated the queries that you need in the readme. Check it out: https://github.com/t0mk/packetjq#show-spot-price-of-a-plan-across-facilities

t0mk avatar Jul 10 '20 14:07 t0mk