Yes,  stream writing into the file is being flushed with every command. 

https://github.com/wildfly/wildfly/blob/master/cli/src/main/java/org/jboss/as/cli/impl/CommandContextImpl.java#L662