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)

Links
https://www.c2b2.co.uk/middleware-blog/jboss-eap-6-cli.php