Skip to main content

kongcl - a CLI for kong admin interface.

Project description

A command line client for kong admin API

This tool ease kong management like getting routes for service name (not id):

kongctl -s https://localhost:8001 list routes -s example-service

1ba43640-6977-4d6a-9804-6e0032d77bb1: example-service
  example.com/

d091d9c4-fde8-4982-b984-8376bd544aaf: example-service
  example.com/api/v1

Installation

brew tap kepkin/kongctl
brew install kongctl

or

pip3 install kongctl

Quick guide to usage

mkdir ~/.kongctl
echo '{
    "server": "my-kong.url:8001",
    "auth": {
        "type": "basic",
        "user": "user",
        "password": "pass"
    }
}' > ~/.kongctl/qa-env

kong -c qa-env list services

TODO

  • Support for OIDC authorization
  • Get stubs for create operation
  • Support all key-auth like plugins
  • Support update from cmd args
  • Support yaml
  • Sort by id?
  • list command filter option
  • Autocomplete
  • Add images instead of code in README (to show color support)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kongctl, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size kongctl-0.0.5-py2.py3-none-any.whl (8.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size kongctl-0.0.5.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page