HAProxy Runtime-API CLI

Hey Folks,

i want to introduce a new CLI interacting with the Runtime-API and like to gather feedback. If its useful et all and what could be improved. It was more or less a weekend project because i was tired using socat and always lookup the commands from the official documentation.

So i combined everything into one small CLI utility written in GO with the help of the lovely https://charm.sh library.

What does it do:

  • present a nice (hopefully) table about all backends and servers (parsed from the show servers state command)
  • present a filterable list of all commands available (parsed from the help command)
  • make it easy to choose a command from this list, and execute it (with a help about available arguments)

here is the github repo: GitHub - digitalkaoz/haproxy-runtime-cli: a interactive CLI utility dealing with the HAProxy runtime API under the latest release you will find a dedicated binary for your OS.

Thanks for feedback in advance :slight_smile:

1 Like

This looks very nice!

You should post it to the mailing list as well, you will reach more people there.

You don’t need to subscribe, you can write directly to haproxy@formilux.org.

Thank you!