Google bigquery bigquery-指定服务帐户文件

Google bigquery bigquery-指定服务帐户文件,google-bigquery,Google Bigquery,我有一个service account.json文件,我想用它来运行查询 在bq--help中,标志/参数似乎是--service account credential file,但当我使用此选项时: bq查询——服务帐户凭证文件“一些查询” 我得到这个错误: 致命标志解析错误:未知命令行标志“服务帐户凭据文件” 顺序不对?错误的旗帜?不可能?我得到: Unknown command line flag 'service-account-credential-file'. Did you mea

我有一个service account.json文件,我想用它来运行查询

bq--help
中,标志/参数似乎是
--service account credential file
,但当我使用此选项时:

bq查询——服务帐户凭证文件“一些查询”

我得到这个错误:

致命标志解析错误:未知命令行标志“服务帐户凭据文件”

顺序不对?错误的旗帜?不可能?

我得到:

Unknown command line flag 'service-account-credential-file'. Did you mean: service_account_credential_file?
所以听起来你需要做:

bq query --service_account_credential_file <file> "some query"
bq查询--service\u account\u credential\u file“some query”