deck file convert

Uses: deck
Related Documentation
Related Resources

The convert command changes configuration files from one format into another compatible format. For example, a configuration for kong-gateway-2.x can be converted into a kong-gateway-3.x configuration file.

deck file convert --input-file kong2x.yaml --from kong-gateway-2.x --to kong-gateway-3.x

Applied transformations

  • kong-gateway-2.x to kong-gateway-3.x
    • Prefix any paths that look like a regular expression with a ~
    • Generate default values for missing namespace fields in any Rate Limiting Advanced plugins

Command usage

Usage:
  deck file convert [flags]

Flags:
      --format string   output file format: json or yaml. (default "yaml")
      --from string     format of the source file, allowed formats: [kong-gateway kong-gateway-2.x 2.8]
  -h, --help            help for convert
      --input-file -    configuration file to be converted. Use - to read from stdin. (default "-")
  -o, --output-file -   file to write configuration to after conversion. Use - to write to stdout. (default "-")
      --to string       desired format of the output, allowed formats: [konnect kong-gateway-3.x 3.4]
      --yes yes         assume yes to prompts and run non-interactively.

Something wrong?

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!