Output Formatting Options

Following are the output formatting options available in common for all the CoreStack CLI commands

Argument Allowed Values Usage & Example
  • -f
  • –format
table (default) Usage: Formats the output in table format. This is default formatting option if none specified
Examples:

  • corestack templates-list -f table
  • corestack templates-list –format table
csv Usage: Formats the output data in comma delimited csv format
Examples:

  • corestack templates-list -f csv
  • corestack templates-list –format csv
json Usage: Formats the output in json
Examples:

  • corestack templates-list -f json
  • corestack templates-list –format json
value Usage: Formats the output and shows only output values. Keys/Columns will be excluded from the output
Examples:

  • corestack templates-list -f value
  • corestack templates-list –format value
yaml Usage: Formats the output in yaml
Examples:

  • corestack templates-list -f yaml
  • corestack templates-list –format yaml
shell Usage: Formats the output in shell format which can be parsed by Unix shell. This option is NOT available for list commands such as templates-list, scripts-list etc.,

Examples:

  • corestack template-show 45c12ce1cda12c1f1a2baa42 -f shell
  • -c
  • –column
column_name Usage: Can specify the column name to be shown as output. This argument can be repeated as required

Examples:

  • corestack templates-list -c Name -c Scope -c Type -c Classification