Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Koo Command Line Interface/ FAQs/ Output Formats/ How Do I Use cli-output, cli-query, and cli-output-num?

How Do I Use cli-output, cli-query, and cli-output-num?

Updated on 2023-02-27 GMT+08:00

For details about how to use the new output parameters, see Specifying Output Format.

In a command, use --cli-query to pass a JMESPath expression and perform a JMESPath query on the result to extract key information in the original returned result. Use --cli-output to specify the response data output format. Use --cli-output-num to specify whether to print the row numbers during table output.

When you use the preceding parameters, note that:

  • Use only --cli-output in a command to specify the output format. If you use only --cli-query in a command, the default output format is JSON.
  • When using --cli-query, enclose the value with double quotation marks ("") to avoid parsing errors when the system processes commands.
  • When using --cli-output-num to specify whether to print the row numbers, set --cli-output to table.
  • In the same command, if --cli-output has been used and old system parameters such as --cli-output-rows and --cli-json-filter are specified, the value of --cli-output is preferentially used as the target output format.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback