use key.json and command line arguments.