DecK

  1. Installation options:

    • MacOS:

      brew tap kong/deck
      brew install deck
      
    • Linux:
      Alternative download / install options are available here: https://github.com/kong/deck/releases

      curl -sL https://github.com/kong/deck/releases/download/v1.8.1/deck_1.8.1_linux_amd64.tar.gz -o deck.tar.gz
      tar -xf deck.tar.gz -C /tmp
      sudo cp /tmp/deck /usr/local/bin/
      
    • Windows:
      Alternatively downloads are here: https://github.com/kong/deck/releases

      curl -sL https://github.com/kong/deck/releases/download/v1.8.1/deck_1.8.1_windows_amd64.tar.gz -o deck.tar.gz
      tar -xzvf deck.tar.gz
      
  2. Ping Kong's Admin API (only to test connection):

    # localhost:8444 tunnels to a remote Kong that you can connect via Putty
    deck ping --kong-addr https://localhost:8444 --tls-server-name <Host_Name_In_Certificate>
    

    Expected output:

    Successfully connected to Kong!
    Kong version:  2.6.0
    
  3. Dump configuration to a file:

    deck --kong-addr https://localhost:8444 --tls-server-name <Host_Name_In_Certificate> dump
    

Sources: