Currently you can specify the password on the command line. It should probably be possible to get the passphrase using the same methods.
passwords/passphrases on the command line is not a very good idea so we shouldn't do more of that. But making sure askpass and such mechanisms work would be nice.