All apps/decK

decK

deck

Configuration management and drift detection for Kong

Runs as deck|macOS, Linux, Windows|github.com

Command form

ai-draft · 3 tasks · 15 fields

Sync, diff and dump Kong Gateway configuration. Konnect, TLS, auth and tag-filter options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui deck

deck gateway sync

Sync state to Kong
Sync state to KongExample values, fixed in this page — nothing here reaches a terminal
Basic
State files*
file
Kong Admin API address
url
Workspace
string
TasksEach one presets the form for one job
Sync state files to Kong
fileskong_addrworkspace
ParametersOnly these flags are editable in the form
State files
Use - for stdin.
path · positional 0 · repeatable
Kong Admin API address
Defaults to http://localhost:8001.
url
--kong-addr
Workspace
Kong Enterprise only.
string
--workspace-w
Skip consumers
boolean
--skip-consumers
Assume yes
Run non-interactively.
boolean
--yes

deck gateway diff

Diff state against Kong
Diff state against KongExample values, fixed in this page — nothing here reaches a terminal
Basic
State files*
file
Kong Admin API address
url
Workspace
string
Advanced
Exit code 2 on diff
--non-zero-exit-code
TasksEach one presets the form for one job
Show pending changes
fileskong_addrworkspaceexit_code
ParametersOnly these flags are editable in the form
State files
Use - for stdin.
path · positional 0 · repeatable
Kong Admin API address
Defaults to http://localhost:8001.
url
--kong-addr
Workspace
Kong Enterprise only.
string
--workspace-w
Exit code 2 on diff
boolean
--non-zero-exit-code

deck gateway dump

Dump Kong state
Dump Kong stateExample values, fixed in this page — nothing here reaches a terminal
Basic
Output file*
file
Format
2 choicesenum
Kong Admin API address
url
TasksEach one presets the form for one job
Dump to a file
output_fileformatkong_addr
ParametersOnly these flags are editable in the form
Output file
Use - for stdout.
path
--output-file-o
Format
enum
--formatyamljson
Kong Admin API address
Defaults to http://localhost:8001.
url
--kong-addr
Workspace
Kong Enterprise only.
string
--workspace-w
Include entity IDs
boolean
--with-id
All workspaces
boolean
--all-workspaces
SourcesEvery flag above is checked against these
src
use := "sync [flags] [kong-state-files...]" syncCmd.Flags().StringVarP(&syncWorkspace, "workspace", "w", "", "Sync configuration to a specific workspace " syncCmd.Flags().BoolVar(&dumpConfig.SkipConsumers, "skip-consumers", syncCmd.Flags().BoolVar(&syncCmdAssumeYes, "yes", false, "assume `yes` to prompts and run non-interactively." rootCmd.PersistentFlags().…
help

github.com

src
use := "diff [flags] [kong-state-files...]" diffCmd.Flags().StringVarP(&diffWorkspace, "workspace", "w", diffCmd.Flags().BoolVar(&diffCmdNonZeroExitCode, "non-zero-exit-code", false, "return exit code 2 if there is a diff present, rootCmd.PersistentFlags().String("kong-addr", defaultKongURL, "HTTP address of Kong's Admin API." flag names: --kong-addr, --work…
help

github.com

src
Use: "dump", dumpCmd.Flags().StringVar(&dumpCmdStateFormat, "format", "yaml", "output file format: json or yaml.") dumpCmd.Flags().BoolVar(&dumpWithID, "with-id", dumpCmd.Flags().StringVarP(&dumpWorkspace, "workspace", "w", dumpCmd.Flags().BoolVar(&dumpAllWorkspaces, "all-workspaces", dumpCmd.Flags().StringVarP(&dumpCmdKongStateFile, "output-file", "o", fi…
help

github.com

Before it fills your prompt, Otty checks the installed deck against its version. A form that does not match your version is not offered.