Snippet for config enviroment variables for use Google App and save an image.
Use de follow code to export variable export GOOGLE_APPLICATION_CREDENTIALS="[PATH]". Replace PATH with the path of json file. Export this variable in each session.
export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
PATH