automation - 命令 `gcloud compute instance-templates delete` 的自动回答是

标签 automation gcloud

要删除 gcloud 实例模板,我们调用

gcloud compute instance-templates delete TEMPLATE_NAME

但是我们必须回答一个不适合自动化 bash 脚本的 Y/n 问题。我们想要自动回答是的,如何?

附言

我的 google search对于这个问题的结果几乎没有帮助。

该命令的手册页也没有任何其他参数。
gcloud help   compute instance-templates delete

最佳答案

gcloud有一组全局标志,包括 --quiet禁用此类提示:

https://cloud.google.com/sdk/gcloud/reference/

关于automation - 命令 `gcloud compute instance-templates delete` 的自动回答是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54751800/

相关文章:

google-app-engine - 无法通过 SSH 连接到 Google Cloud

macos - OS X Bash, 'watch' 命令

java - Selenium,如何提取两个 div 标签之间的文本

google-cloud-platform - 在 gsutil 中为 GCP 操作指定 Google 服务帐户

c# - 引用多个 C# 项目时 Firebase 函数构建错误

gcloud - 如何使用 GCloud 命令将新域添加到现有的 google 管理的 SSL 证书

javascript - 综合监控 - 返回随机生成的密码字符以用作变量

testing - 无法通过 npm 链接运行本地版本的 testcafe

macos - 操作系统 : Execute bash script when file appears in folder

python - 将大量文件从 Google Cloud Storage 复制到 Google Colab 而无需记录/打印