2

I'm using gcloud auth activate-service-account in a script to activate a service account. It outputs

Activated service account credentials for: [XXX@YYY.iam.gserviceaccount.com]

Is there a flag I can use to make the command not output anything? --quiet doesn't seem to do what I want.

Ztyx
  • 14,100
  • 15
  • 78
  • 114

1 Answers1

6

Looks like you need to use the --no-user-output-enabled flag.

gcloud --no-user-output-enabled auth activate-service-account --key-file=[service-account.json]

Official docs here:

--user-output-enabled

Print user intended output to the console. Overrides the default core/user_output_enabled property value for this command invocation. Use --no-user-output-enabled to disable.

VictorGGl
  • 1,848
  • 10
  • 15