wildfly

configuration
/opt/wildfly/standalone/configuration/standalone.xml

CLI
ssh -X wildfly.example.com /opt/wildfly/bin/jboss-cli.sh --gui

/opt/wildfly/bin/jboss-cli.sh --connect

/subsystem=datasources/data-source=ExampleDS/:remove

# sdd postgres driver
/subsystem=datasources/jdbc-driver=postgres:add(driver-name=postgres,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)

# add datasource
data-source add --name=DefaultDS --driver-name=postgres --jndi-name=java:jboss/datasources/postgresDS --connection-url=jdbc:postgresql://localhost:5432/foo --user-name=foo --password=bar --enabled=true --use-java-context=true

# --use-ccm=false --max-pool-size=25 --blocking-timeout-wait-millis=5000

subsystem=deployment-scanner/scanner=default/:write-attribute(name=deployment-timeout,value={{ wildfly_startup_timeout }})
interface=public/:undefine-attribute(name=inet-address)
interface=public/:write-attribute(name=any-address,value=true)

# cli
[standalone@localhost:9990 /] deployment-info
[standalone@localhost:9990 /] undeploy my-ear-1.0.ear
[standalone@IP_ADDRESS:9990 /] /system-property=foo:add(value=bar)
[standalone@IP_ADDRESS:9990 /] /system-property=foo:read-resource

}
[standalone@IP_ADDRESS:9990 /] /system-property=foo:remove

https://docs.jboss.org/author/display/WFLY10/CLI+Recipes

Links
https://www.c2b2.co.uk/middleware-blog/jboss-eap-6-cli.php
https://kb.novaordis.com/index.php/Adding_Users_to_WildFly_Security_Realms