download-invoice
Addedv1.0.x
This operation downloads an invoice as PDF. Use zilliz billing invoices to list available invoice IDs first. The PDF is saved as ./<invoiceId>.pdf if neither --output-file nor --dir is supplied.
Synopsis
zilliz billing download-invoice
--invoice-id <string>
[--output-file <path> | --dir <path>]
Options
-
--invoice-id (string) -
[REQUIRED]
Specifies the invoice ID to download. Use
zilliz billing invoicesto list IDs. -
--output-file, -o (path) -
Specifies the output file path. Auto-appends
.pdfif missing. Mutually exclusive with--dir. -
--dir, -d (path) -
Specifies a directory to save the PDF as
<dir>/<invoiceId>.pdf. Mutually exclusive with--output-file.
Example
# Save to ./<invoiceId>.pdf
zilliz billing download-invoice --invoice-id inv-xxxx
# Save to a specific directory
zilliz billing download-invoice --invoice-id inv-xxxx -d ~/Downloads
# Save to an explicit file path
zilliz billing download-invoice --invoice-id inv-xxxx -o ~/Downloads/march.pdf