I've been working on a Puppet Module for Wildfly [1] that uses his HTTP Management API to perform operations (manage resources/deploys and execute commands), but my command execution code is a little bit limited cause I have to transform from CLI syntax to JSON. e.g.:

:shutdown(restart=true)

becomes

{"operation" : "shutdown", "restart" : "true" }

Is there any specific reason to not support plain CLI commands through HTTP API? I looked at the code and it didn't see hard to implement this...

[1] https://github.com/biemond/biemond-wildfly