To pass in the password for a user to the create-file-user command, the method is to use the --passwordfile option with the following variable:
This isn't documented in the manual page for create-file-user, specifically, that the name of the variable in the password file is AS_ADMIN_USERPASSWORD.
This bug was prompted by issue
GLASSFISH-16277 which is related to using create-file-user in embedded mode. However, this documentation fix is intended to deal with the CLI case. For the embedded case, once 16277 is resolved, then the embedded documentation needs to be updated with an explanation of how to pass a password to an embedded command.