a mimic work of google-cli command line tool