The deck ai sync command reads AI Gateway configuration files and configures the target AI Gateway to match the values specified in your declarative configuration.
It tags every managed entity with managed_by:deck-ai.
This is the direct equivalent of running deck file ai2kong followed by deck gateway sync on the result.
Any configuration in AI Gateway that isn’t present in the provided declarative configuration file will be deleted using
deck ai sync. To apply a partial configuration use tags.
The deck ai sync command can accept one or more files as positional arguments:
# Sync a single file
deck ai sync kong.yamlIn addition to positional arguments, deck ai sync can read input from stdin for use in pipelines:
# Remove example-service from the file before syncing
cat kong.yaml | yq 'del(.services[] | select(.name == "example-service"))' | deck ai sync