gcloud app deploy, flag to automate prompting?

Gcloud

Gcloud Problem Overview


Is it possible to do silent deployment when using gcloud app deploy

When I run the command gcloud app deploy ./deployment/app.yaml --version v1 its always prompting for

Do you want to continue (Y/n)? Y

how to automate this? is there any flag that we can pass in to mute this?

Gcloud Solutions


Solution 1 - Gcloud

You're looking for the --quiet flag, available across all gcloud commands:

$ gcloud --help
     --quiet, -q
    Disable all interactive prompts when running gcloud commands. If input
    is required, defaults will be used, or an error will be raised.

Solution 2 - Gcloud

    $ gcloud app deploy --quiet

Or also:

    $ gcloud app deploy -q

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSahasView Question on Stackoverflow
Solution 1 - GcloudZachary NewmanView Answer on Stackoverflow
Solution 2 - GcloudGonzalo García HernándezView Answer on Stackoverflow