Most commands that produce output support the --output-format
parameter. This accepts the following values:
textText format (default). Structured data is rendered as a table.
jsonJSON (single line).
json-prettyJSON (multiple lines, nicely formatted).
Also, the following environment variables can modify output behavior:
PROXMOX_OUTPUT_FORMATDefines the default output format.
PROXMOX_OUTPUT_NO_BORDERIf set (to any value), do not render table borders.
PROXMOX_OUTPUT_NO_HEADERIf set (to any value), do not render table headers.
Note
The text format is designed to be human readable, and
not meant to be parsed by automation tools. Please use the json
format if you need to process the output.