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

Soving AccessDenied on Google Cloud Storage domain mapping

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

Simple Samba setup on Lubuntu