How Do I Use cli-output, cli-query, and cli-output-num?
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.
Output Formats FAQs
- What Output Formats Are Supported by KooCLI?
- How Do I Define a JMESPath Expression?
- Which KooCLI System Parameters Are Related to Data Output? Which Ones Are Recommended?
- How Do I Use cli-output, cli-query, and cli-output-num?
- How Do I Use cli-output-rows, cli-output-cols, and cli-output-num? What Are the Precautions?
- How Do I Use cli-json-filter? What Are the Precautions?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore