kongctl list

Uses: kongctl
Related Documentation
Incompatible with
on-prem

kongctl provides the following tools for listing resources:

Text output is optimized for terminals and can omit fields. Use --output json or --output yaml for complete structured output. Use repeated --columns HEADER=.field flags to select custom text columns.

Command

Description

kongctl list ai Inspect Konnect AI resources.
kongctl list ai-gateway List AI Gateways.
kongctl list api List APIs.
kongctl list auth-strategy List authentication strategies.
kongctl list dcr-provider List DCR providers.
kongctl list extensions List installed kongctl CLI extensions.
kongctl list gateway List gateways.
kongctl list identity List Kong Identity resources.
kongctl list konnect List Konnect resources.
kongctl list organization List organizations.
kongctl list portal List Portal configurations.
kongctl list profile List kongctl profiles.
kongctl list themes List Portal themes.

Command usage

Usage:
  kongctl list [flags]
  kongctl list [command]

Aliases:
  list, ls, l

Examples:
  # Retrieve Konnect control planes
  kongctl list konnect gateway control-planes
  # Retrieve Konnect control planes ('konnect' is implied)
  kongctl list gateway control-planes
  # Retrieve Konnect portals
  kongctl list portals
  # Retrieve Konnect APIs
  kongctl list apis
  # Retrieve Konnect auth strategies
  kongctl list auth-strategies
  # Retrieve kongctl extensions
  kongctl list extensions

Available Commands:
  ai            Inspect Konnect AI resources
  ai-gateway    List or get Konnect AI Gateways
  api           List or get Konnect APIs
  auth-strategy List or get Konnect authentication strategies
  dcr-provider  List or get Konnect DCR providers
  extensions    List installed kongctl CLI extensions
  gateway       Manage Konnect Kong Gateway resources
  identity      Manage Kong Identity resources
  konnect       Manage Konnect resources
  organization  Get current organization information
  portal        List or get Konnect portals
  profile       Manage kongctl profiles
  themes        List available color themes


Flags:
      --base-url string              Base URL for Konnect API requests.
                                     - Config path: [ konnect.base-url ]
                                     - Default   : [ https://us.api.konghq.com ]
      --color-theme string           Configures the CLI UI/theme (prompt, tables, TUI elements).
                                     - Config path: [ color-theme ]
                                     - Examples   : [ auto, 0_x_96_f, 12_bit_rainbow, 13_th_floor, 3024_day ]
                                     - List       : [ kongctl list themes ] (default "auto")
      --columns stringArray          Select text columns as HEADER=.field (repeatable or comma-separated).
                                     Supports nested fields, quoted keys, array indexes, and string slices.
      --config-file string           Path to the configuration file to load.
                                     - Environment variable: KONGCTL_CONFIG_FILE (overridden by this flag)
                                     - Default: [ $XDG_CONFIG_HOME/kongctl/config.yaml ]
  -h, --help[=true|false]            help for list
      --jq string                    Filter JSON responses using jq expressions (powered by gojq for full jq compatibility)
      --jq-color string              Controls colorized output for jq filter results.
                                     - Config path: [ jq.color.enabled ]
                                     - Allowed    : [ auto|always|never ] (default "auto")
      --jq-color-theme string        Select the color theme used for jq filter results.
                                     - Config path: [ jq.color.theme ]
                                     - Examples   : [ friendly, github-dark, dracula ]
                                     - Reference  : [ https://xyproto.github.io/splash/docs/ ] (default "friendly")
  -r, --jq-raw-output[=true|false]   Output string jq results without JSON quotes (like jq -r).
                                     - Config path: [ jq.raw-output ]
      --log-file string              Write execution logs to the specified file instead of STDERR.
                                     - Config path: [ log-file ]
      --log-level string             Configures the logging level. Execution logs are written to STDERR.
                                     - Config path: [ log-level ]
                                     - Allowed    : [ trace|debug|info|warn|error ] (default "error")
      --no-telemetry[=true|false]    Disable telemetry for this command invocation. Overrides config and env.
                                     - Config path: [ telemetry.enabled ]
                                     - Env var    : [ KONGCTL_NO_TELEMETRY ]
                                     - Default    : [ false ]
      --no-trunc[=true|false]        Preserve full cell widths in static text tables beyond terminal width.
                                     Does not change column selection, UUID formatting, or explicit string slices.
                                     - Config path: [ text.no-trunc ]
                                     - Default    : [ false ]
  -o, --output string                Configures the format of data written to STDOUT.
                                     - Config path: [ output ]
                                     - Allowed    : [ json|yaml|text ] (default "text")
      --page-size int                Max number of results to include per response page for get and list operations.
                                     - Config path: [ konnect.page-size ] (default 10)
      --pat string                   Konnect Personal Access Token (PAT) used to authenticate the CLI.
                                     Setting this value overrides tokens obtained from the login command.
                                     - Config path: [ konnect.pat ]
  -p, --profile string               Specify the profile to use for this command. (default "default")
      --region string                Konnect region identifier (for example "eu"). Used to construct the base URL when --base-url is not provided.
                                     - Config path: [ konnect.region ]
      --text-id-format string        Configure UUID rendering in static text-table ID columns.
                                     - Config path: [ text.id-format ]
                                     - Allowed    : [ compact|full ]
                                     - Default    : [ compact ]
      --text-layout string           Configure static text-table column selection.
                                     - Config path: [ text.layout ]
                                     - Allowed    : [ compact|auto|wide ]
                                     - Default    : [ compact ]

Use "kongctl list [command] --help" for more information about a command.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!