equinix / metal-cli

Official Equinix Metal CLI
https://deploy.equinix.com/labs/metal-cli
MIT License
58 stars 46 forks source link

Add invoices sub-commands #363

Open displague opened 11 months ago

displague commented 11 months ago

What problem are you facing?

The Metal API includes endpoints for requesting invoices. https://deploy.equinix.com/developers/api/metal#tag/Invoices/operation/findOrganizationInvoices https://deploy.equinix.com/developers/api/metal#tag/Invoices/operation/getInvoiceById

These are available in the API and Portal today.

How could the Equinix Metal CLI help solve this problem?

The CLI should have commands related to this feature.

CSV format would be helpful in this use-case: https://github.com/equinix/metal-cli/issues/81

The Portal provides CSV download options by processing the API's JSON response. The CLI could effectively offer the same.

aayushrangwala commented 10 months ago

/assign @aayushrangwala