Questions tagged [gcloud]

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks.

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks. Cloud SDK also contains tools and libraries to create and manage App Engine, Compute Engine, Cloud Storage, Cloud SQL, and BigQuery resources.

Useful links

Google Cloud SDK - Home page Google Cloud SDK - Discussions Forum gcloud - Tool Guide gcloud - Support channel at freenode IRC network

4396 questions
26
votes
4 answers

What is the difference between gcloud and gsutil?

I want to know difference between gcloud and gsuitl. Where do we use what? Why certain commands begin with gsutil while others with gcloud?
26
votes
5 answers

gcloud - ERROR: (gcloud.app.deploy) Permissions error fetching application

I am trying to deploy node js app on google cloud but getting following error - Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps /mytest-240512]. Please make sure you are using the correct project ID and that you have…
26
votes
5 answers

How to debug Nodejs app running inside Docker container via Google Cloud

I have found Google provides some guidelines on how to run Nodejs on a custom runtime environment. Everything seems fine and I am managing to start my Nodejs app on local machine running gcloud preview app run ..As I can see, it probably creates a…
Nik Sumeiko
  • 8,263
  • 8
  • 50
  • 53
25
votes
2 answers

Is it possible to copy a directory from a Google Compute Engine instance to my local machine?

With scp I can add the -r flag to download directories to my local machine via ssh. When using: gcloud compute scp -r it sais that '-r' is not an available option. Without -r I get an error saying that my source path is a directory. (Implying I…
ThatBrianDude
  • 2,952
  • 3
  • 16
  • 42
24
votes
5 answers

Where are Google Application Default Credentials stored?

When you run gcloud auth login or gcloud auth list, where is it storing the credentials? https://developers.google.com/identity/protocols/application-default-credentials
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70
24
votes
1 answer

Possible to change a Google Cloud Platform Project ID?

I understand project names can be changed however I don't see any method to change the project ID. Is this possible using the gcloud shell perhaps if not in the UI?
Cv9
  • 343
  • 1
  • 2
  • 4
23
votes
4 answers

job failing with ERROR: gcloud crashed (AttributeError): 'bool' object has no attribute 'lower'

We noticed our jobs are failing with the below error on the dataproc cluster. ERROR: gcloud crashed (AttributeError): 'bool' object has no attribute 'lower' If you would like to report this issue, please run the following command: gcloud…
23
votes
3 answers

How do I install gke-gcloud-auth-plugin on a Mac M1 with zsh

I try to install gke-gcloud-auth-plugin on a Mac M1 with zsh, following the gcloud docs. The installation ran without issue and trying to re-run gcloud components install gke-gcloud-auth-plugin I get the All components are up to date.…
Amiel
  • 261
  • 1
  • 2
  • 7
23
votes
1 answer

gcloud confusion around add-iam-policy-binding

Following gcloud documentation gcloud iam service-accounts add an IAM policy binding to an IAM service account https://cloud.google.com/sdk/gcloud/reference/iam/service-accounts/add-iam-policy-binding Example section To add an IAM policy binding…
Jonathan Chevalier
  • 993
  • 1
  • 9
  • 18
23
votes
2 answers

gcloud components update permission denied

All of a sudden I started getting "Permission Denied" issues when trying to run any gcloud commands such as gcloud components update -- the issue was avoided if I ran sudo gcloud components update but it's not clear to my why the sudo command is…
reese0106
  • 2,011
  • 2
  • 16
  • 46
23
votes
2 answers

Google datastore emulator web console

I'm running a local stand-alone datastore emulator using the gcloud tool: $ gcloud beta emulators datastore start It works fine, but I'm missing the integrated /_ah/admin page the old appengine dev server offers. Is there something comparable for…
hraban
  • 1,819
  • 1
  • 17
  • 27
23
votes
4 answers

Can I use gcloud in Git Bash on Windows?

So, I've installed Git, Git Bash, Python2.7, and I've just installed the Google Cloud SDK per the official guide. Using Windows 10. In cmd.exe, or the "Google Cloud SDK Shell", gcloud works fine. Within Git Bash, however (the terminal that I…
ensminger
  • 671
  • 3
  • 6
  • 14
23
votes
3 answers

What is the gcloud command to allow http traffic on a VM instance? (It's not create firewall rule!)

First, I wish to use purely gcloud commands to acheive my objective - NOT the GCE interface - so please don't provide answers using the GUI! I created an image from a disk attached to a VM instance. In order to do so, I had to delete the instance,…
BuvinJ
  • 10,221
  • 5
  • 83
  • 96
23
votes
4 answers

google compute engine tool gcloud is exceptionally slow

I tried downloading and using the gcloud bash tool to manage my accounts, however everything I do with the tool is exceptionally slow. It will take MINUTES to reply to a command that is typed. Is there perhaps a firewall I need to open up on my…
22
votes
5 answers

Google Cloud Platform Service Account is Unable to Access Project

I encounter the following warning: WARNING: You do not appear to have access to project [$PROJECT] or it does not exist. after running the following commands locally: Activate and set a service account: gcloud auth activate-service-account…
bryan
  • 8,879
  • 18
  • 83
  • 166