I can login to cloud-foundy/bluemix using:
cf login -u my_cf_username -p my_cf_password
I can set up environment variables to store these values (e.g. by setting them in .bashrc
or .profile
):
export cf_user=my_cf_username
export cf_pass=my_cf_password
cf login -u $cf_user -p $cf_pass
However, ideally I would like the Cloud Foundry username and password to be retrieved from a properties file, e.g. $HOME/.cf
- is this possible?
This isn't possible with the current CF CLI client. It should be possible to write a custom CF CLI Plugin to handle this behaviour.