Change credentials file location or pass the username, api on the command line

Hello I do not have permissions to write into home directory … can i change the location of the credentials file to /tmp/ or something like that or pass the username and api_key over the command line ?