Password File as a argument to the command
2 answers
You cannot pass a file to the -P option. If you do not want to enter the password in clear text then do not specify the option. The cli will prompt for the password and the password is masked. You may need to use the -c option if you want to cache the password. The encrypted password is stored in a file and by default it is stored in the <users home directory>/jazz-scm location. You can change the configuration directory by specifying the --config option.
If you plan to use it in the script, before you run the script login via the command line and then run the script without the -u and -P option. When the commands are run (on the command line or within a script), the cli will look for the repository url (implicit determined or explicit specified) and refer to the cached credentials for that repository url to login to the repository.
By the way, there is already a workitem opened to accept a password file.