gcloud beta函数命令说"无效的选择函数"

jrw*_*ren 4 google-cloud-functions

我在这里关注谷歌云功能教程:https://cloud.google.com/functions/docs/quickstart

我安装google-cloud-sdk和源两者path.bash.inccompletion.bash.inc.

gsutil命令步工作和创建存储桶.

当我gcloud beta functions deploy helloWorld --stage-bucket [BUCKET_NAME] --trigger-topic hello_world用[BUCKET_NAME] 运行替换时,我得到了使用帮助并出现以下错误:

```错误:(gcloud.beta)选项无效:'函数'.

有效的选择是[app,auth,bigtable,compute,config,container,dataflow,dataproc,debug,deployment-manager,emulators,error-reporting,iam,init,logging,ml,organization,projects,pubsub,service-management, source,sql,test].```

我不确定gcloud命令是如何工作的,但我可以看到functions目录中的lib/surface/目录google-cloud-sdk.

为什么不起作用gcloud beta functions?我怎样才能使它工作?

小智 13

确保安装了最新的云SDK.

我得到了同样的错误,似乎我有137版本,而最新版本是152.

运行后gcloud components update它解决了.