Most resource commands support text, json, and yaml output. Text
output is optimized for reading in a terminal and can omit fields or truncate
long values. Use JSON or YAML when automation needs the complete response.
Configure the default output format for a profile:
Text output has two profile settings:
|
Configuration path
|
Flag
|
Values
|
Behavior
|
text.layout
|
--text-layout
|
compact, auto, wide
|
Controls how many safe fields static text tables display.
|
text.id-format
|
--text-id-format
|
compact, full
|
Controls whether UUID columns are shortened or shown in full.
|
For example:
default:
output: text
text:
layout: auto
id-format: full
compact is the default layout. auto adds fields when the output is a
wide enough terminal and otherwise uses the compact layout. wide selects
every safe text field. The default ID format is compact.
On commands that support it, repeat --columns HEADER=.field to replace the
built-in text columns:
kongctl get apis \
--columns NAME=.name \
--columns UPDATED=.updated_at
--columns works only with text output and can’t be combined with --jq.
Use --jq with JSON or YAML output when you need to transform structured
output.