Auth in CLI

in case of error exit with non-zero status, and print the error to System.err