deck file ai2kong

Uses: deck

This command takes a state file in AI Gateway 2.0 format and converts it to a standard decK state file for use with a self-managed (on-prem) Kong Gateway. It also adds the managed_by:deck-ai tag to all entities by default.

The source file may be provided in either YAML or JSON; the format is auto-detected. The output format is controlled by the --format flag.

Convert an AI Gateway 2.0 file to a Kong Gateway state file

Converting an OpenAPI file to a Kong declarative configuration can be done in a single command:

deck file ai2kong --source ai-gateway-2.yaml --output-file kong.yaml

Command usage

Usage:
  deck file ai2kong [flags]

Flags:
      --format string        output format: yaml or json (default "yaml")
  -h, --help                 help for ai2kong
  -o, --output-file string   Output Kong decK file (optional, defaults to stdout)
  -s, --source string        AI Gateway source file (required)

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!