metal-cli
metal-cli copied to clipboard
feature request: spot prices
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?)
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