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

$ 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


Popular posts from this blog

Simple Samba setup on Lubuntu

Soving AccessDenied on Google Cloud Storage domain mapping

Deploying a static website efficiently on Google Cloud Storage