Questions tagged [gcloud-cli]

gcloud is the command line utility for Google Cloud Platform.

gcloud is the command line utility for Google Cloud Platform. Documentation at https://cloud.google.com/sdk/gcloud

64 questions
0
votes
0 answers

Is there a way to tag or version Cloud Storage buckets?

I have a shell script which refreshes my emulators data to the latest data from prod. Part of the script is removing the existing bucket and then re exporting it to avoid the Path already exists error. I know that I can manually add version buckets…
Rafael Zasas
  • 891
  • 8
  • 27
0
votes
0 answers

Bazel genrule does not see gcloud config - Windows

I'm new to Bazel so I would love some help with getting this working cross-platform I have this code in BUILD.bazel. It seems to work fine on Linux and OSX, but it breaks for the devs who are using Windows as their dev environment. I assume it has…
Tomasz Golinski
  • 743
  • 5
  • 25
0
votes
1 answer

How to get shell script to work on gcloud CLI in PowerShell?

I've installed the gcloud CLI according to https://cloud.google.com/sdk/docs/install. When using cloud shell on browser, I could simply paste a script and it would work. But it won't do the same when using cloud CLI on Powershell. Script: # List…
0
votes
1 answer

Getting details of a BigQuery job using gcloud CLI on local machine

I am trying to process the billed bytes of each bigquery job runned by all user. I was able to find the details in BigQuery UI under Project History. Also running bq --location=europe-west3 show --job=true --format=prettyjson JOB_ID on Google Cloud…
0
votes
1 answer

Error while deploying App Engine standard project from command line

We have a App Engine standard Java8 project, where JSP files were used for views and each of those jsp file will be using a util class, so we've used the page directive provided by jsp to import the required util class. The code looks like…
0
votes
1 answer

GCR Image Tag Listing using GCloud SDK CLI

I'm trying to get list of all the tags in my private GCR repository. I could do that using "gcloud container images list-tags" command as follows: gcloud container images list-tags gcr.io/project-id/REPONAME DIGEST TAGS …
Sudev G
  • 55
  • 6
0
votes
1 answer

How can I run Batch Prediction on a model I've made in Google's AutoML Tables on 7000 (200GB+) of csv's I have in a gCloud Storage Bucket?

My issue seems to be that the CLI can't see the models I've created in this project under the AutoML Tables product. Any help with this is greatly appreciated. I'm trying to use the CLI because I can't submit 7000+ CSV's through the web interface…
0
votes
0 answers

Possible to use yaml array in --properties with `gcloud deployment-manager`?

Is it possible to use a yaml array in --properties with gcloud deployment-manager? I've tried something like: gcloud deployment-manager deployments create my-deployment --template my-firewall.py --properties "ips:['127.0.0.1','127.0.0.2']" And I…
ahong
  • 1,041
  • 2
  • 10
  • 22
0
votes
1 answer

GCloud custom image upload failure due to size or permissions

I've been trying to upload two custom images for some time now and I have failed repeatedly. During the import process the Google application always responds with the message that the Compute Engine Default Service Account does not have the role…
CookieAndPizza
  • 71
  • 3
  • 15
0
votes
1 answer

Access to firebase configuration

I have a function which is deployed in Google Cloud Platform with Serverless using the serverless-google-cloudfunctions plugin. The function was deployed successfully but when I tried to access the require('firebase-functions').config() object it…
0
votes
1 answer

segmentation fault for gcloud CLI

I am using gcloud-cli. installed it on ubuntu 18.04 using snap. verified logs, even ran in verbose mode. But could not find any reason for segmntation fault. Command I am using gcloud init --verbosity=debug Issue I am facing DEBUG: Running…
sdk
  • 178
  • 2
  • 19
0
votes
1 answer

How to specify zone when using gcloud cli

When I wanna transfer files to a instance but this instance is not in my default zone of gcloud-cli, how to specify a zone?
Zhijian
  • 109
  • 1
  • 1
0
votes
2 answers

gcloud: Find all VMs in a specific Network

How can I use gcloud to list all VMs in a specific GCE network? gcloud compute instances list lists all VMs in all the networks in my project. If I do gcloud compute instances describe foo on each, I can see the network, but doing that for each is…
sligocki
  • 6,246
  • 5
  • 38
  • 47
0
votes
1 answer

gcloud ssh stack at authentication, plus incorrect name

I am trying to login to my VM on google cloud using the following command (on Win 7): gcloud compute ssh --zone= --ssh-flag="-D" --ssh-flag="1080" --ssh-flag="-N" It opens Putty windows with the following info: Using username…
user1700890
  • 7,144
  • 18
  • 87
  • 183
0
votes
1 answer

Is there an analog to 'gcloud projects list' in the Google Cloud Platform REST API?

Which Google Cloud Platform (GCP) REST API route would I use for listing GCP projects? I.e., which GCP REST API route would give a response similar to the output of the list Cloud SDK (gcloud) command: gcloud projects list #=> PROJECT_ID NAME …
Stono
  • 2,337
  • 2
  • 16
  • 18