Help Center/ Koo Command Line Interface/ FAQs/ Output Formats/ Which KooCLI System Parameters Are Related to Data Output? Which Ones Are Recommended?
Updated on 2022-07-07 GMT+08:00

Which KooCLI System Parameters Are Related to Data Output? Which Ones Are Recommended?

The following table lists the KooCLI system parameters related to data output.

Table 1 KooCLI system parameters related to data output

Category

Parameter

Description

New output parameters

cli-output, cli-query, cli-output-num

  • cli-output
    Response data output format. The options are as follows:
    • json
    • table
    • tsv
  • cli-query

    JMESPath for filtering response data.

  • cli-output-num

    Whether to print the row numbers during table output. The value can be true or false.

Old output parameters

cli-output-rows, cli-output-cols, cli-output-num, cli-json-filter

  • cli-output-rows

    Levels to print during table output.

  • cli-output-cols

    Fields to print during table output.

  • cli-output-num

    Whether to print the row numbers during table output. The value can be true or false.

  • cli-json-filter

    Performs a JMESPath query on the output JSON result.

Compared with the old output parameters, the new output parameters support TSV format in addition to table and JSON and are unified to facilitate user operations.

Functions related to output formats will be continuously optimized based on the new output parameters. The old output parameters can still be used but will not be upgraded. You are advised to use the new output parameters when constructing commands.