Solving gcloud invalid choid: 'preview' or invalid choice: 'app'
After trying to run google cloud hello world for dart on Ubuntu and after installing gcloud sdk and using the following command
I was getting:
Solution is to run:
Then I was getting
ERROR: (gcloud.preview) Invalid choice: 'app'.
Solution is to run:
$ gcloud preview app run app.yaml
I was getting:
ERROR: (gcloud) Invalid choice: 'preview'.
Solution is to run:
$ gcloud components update preview
Then I was getting
ERROR: (gcloud.preview) Invalid choice: 'app'.
Solution is to run:
$ gcloud components update app
As it turned out, I could have simply done this in one command
$ gcloud components update preview app