Questions tagged [google-cloud-sdk]

Google Cloud SDK contains tools and libraries that enable you to easily create and manage resources on Google Cloud Platform, including App Engine, Compute Engine, Cloud Storage, BigQuery, Cloud SQL, and Cloud DNS.

Google Cloud SDK contains tools and libraries that enable you to easily create and manage resources on Google Cloud Platform, including App Engine, Compute Engine, Cloud Storage, BigQuery, Cloud SQL, and Cloud DNS.

System Requirements: Google Cloud SDK runs on Windows, Mac OS X and Linux, and requires Python 2.7.x. Some of the individual tools bundled with Cloud SDK have more stringent requirements: using App Engine tools for Java development requires Java 1.7+.

501 questions
84
votes
7 answers

Apt-get is broken after install Google Cloud SDK on Ubuntu 18.04 LTS

I was installing the Google Cloud SDK on my Ubuntu VM using the following commands # Add the Cloud SDK distribution URI as a package source echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk…
Vinay Joseph
  • 5,515
  • 10
  • 54
  • 94
43
votes
12 answers

-bash: gcloud: command not found on Mac

I'm following the Quickstart for Mac OS X to install the cloud SDK. Following the steps exactly, 1) python -V returns "Python 2.7.10" 2) Download and extract using ./install.sh the 64bit version of the SDK in google-cloud-sdk returns... Welcome to…
Shane O'Seasnain
  • 3,534
  • 5
  • 24
  • 31
38
votes
3 answers

Is it possible to use the Google Cloud Shell via a ssh?

Is it possible to connect to the Google Cloud Shell instance via the ssh? Maybe somehow with gcloud? So I can use it with my favorite terminal (iTerm in particular) and not with the Web-based shell. Answer: yes it is now been possible:…
35
votes
1 answer

Can I automate Google Cloud SDK gcloud init - interactive command

Documentation on Google Cloud SDK https://cloud.google.com/sdk/docs/ directs one to run gcloud init after installing it. Is there a way to automate this step given that gcloud init is an interactive command?
cherba
  • 8,681
  • 3
  • 27
  • 34
30
votes
1 answer

Pass google default application credentials in local docker run

Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default…
28
votes
2 answers

How to authenticate google cloud SDK on a docker Ubuntu image?

I am a bit confused about how I can authenticate the gcloud sdk on a docker container. Right now, my docker file includes the following: #Install the google SDK RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz >…
AspiringMat
  • 2,161
  • 2
  • 21
  • 33
27
votes
4 answers

Google Cloud SQL proxy couldn't find default credentials

I'm trying to run Google Cloud SQL proxy locally like this: $ ./cloud_sql_proxy -instances project-name:region-name:instance-id tcp:3306 But it's returning google: could not find default credentials. See…
starleaf1
  • 2,701
  • 6
  • 37
  • 66
26
votes
1 answer

Why can't PowerShell find the gcloud cmdlets?

I've updated the Google Cloud SDK (gcloud), both in general with: gcloud components update And just for PowerShell with: gcloud components update powershell Running gcloud --version shows: Google Cloud SDK 122.0.0 beta 2016.01.12 bq 2.0.24 bq-win…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
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
18
votes
7 answers

ImportError: No module named google.oauth2

I wanted to add a google.cloud.storage dependency to my project so I tried to install this dependency with pip install --upgrade google-cloud-storage Running my app again with dev_appserver, it shows me that my gcloud components needed to be…
18
votes
7 answers

Deploying basic Angular 2 app to Google App Engine

I can use Angular 2 to create basic front-end applications and can use python to create back-ends with endpoints on Google App engine. I can't however seem to figure out how to put the two together and deploy them with the cloud SDK. Here is a basic…
Nicholas
  • 1,113
  • 3
  • 14
  • 33
18
votes
4 answers

Google Cloud SDK installer fails to complete component installation on Windows 7

During installation I get a message: Unfortunately, the component installation did not complete successfully. Please check the detailed logs for the error message. I tried installing to all users, single user, many destinations and…
Vladas K
  • 181
  • 1
  • 1
  • 5
16
votes
1 answer

Installing Google Cloud SDK, what is the path to the rc file?

https://cloud.google.com/sdk/docs/quickstart-mac-os-x I downloaded the tar, and ran the install.sh Next I got this message, however I don't see any rc / .rc file? To update your SDK installation to the latest version [162.0.1], run: $ gcloud…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
16
votes
3 answers

Google Cloud SDK install on OS X: (gcloud.components.list) Failed to fetch component listing from server

I'm trying to install the Google Cloud SDK (https://cloud.google.com/sdk/docs/quickstart-mac-os-x) and get this error: ERROR: (gcloud.components.list) Failed to fetch component listing from server. Check your network settings and try again. Already…
Jan
  • 1,827
  • 2
  • 16
  • 29
14
votes
3 answers

SOLUTION: google cloud sdk issue: 'callers must accept terms of service'

Known issue: Installing google-cloud-sdk (linux package or from tarball) has a quirk where you cannot create projects from the command line before accepting the terms of service. Steps to reproduce: Download sdk, untar, move folder to home…
1
2 3
33 34