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.
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.
Chatbot