Gcloud - How to automate installation of gcloud on a server?

前端 未结 3 896
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 10:44

I want to write a shell script which basically goes through all the installation steps for gcloud, as outlined at: https://cloud.google.com/sdk/?hl=en

However, when you

3条回答
  •  鱼传尺愫
    2021-02-10 11:14

    This sequence of commands should help:

    file="google-cloud-sdk-101.0.0-linux-x86_64.tar.gz"
    link="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/"
    
    curl -L "$link""$file" | tar xz 
    CLOUDSDK_CORE_DISABLE_PROMPTS=1 ./google-cloud-sdk/install.sh
    

提交回复
热议问题