Difference between revisions of "Gcloud config set account"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[gcloud config set]] account YOURACCOUNT  
 
  [[gcloud config set]] account YOURACCOUNT  
 +
Updated property [core/account].
 +
 +
[[gcloud auth activate-service-account]] --key-file=your_key_file_name.json
  
 +
== Example ==
 
  gcloud config set account your_user@your_domain.[[iam.gserviceaccount.com]]
 
  gcloud config set account your_user@your_domain.[[iam.gserviceaccount.com]]
 
  Updated property [core/account].
 
  Updated property [core/account].
Line 9: Line 13:
 
== Related ==
 
== Related ==
 
* <code>[[gcloud auth list]]</code>
 
* <code>[[gcloud auth list]]</code>
 +
* <code>[[gcloud container clusters get-credentials]]</code>
 +
* <code>[[$HOME/.config/gcloud/]]</code>
 +
* <code>[[gcloud iam service-accounts keys create]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{gcloud config set}}
 
* {{gcloud config}}
 
* {{gcloud config}}
  
 
[[Category:GCP]]
 
[[Category:GCP]]

Latest revision as of 04:55, 3 November 2022

gcloud config set account YOURACCOUNT 
Updated property [core/account].
gcloud auth activate-service-account --key-file=your_key_file_name.json

Example[edit]

gcloud config set account your_user@your_domain.iam.gserviceaccount.com
Updated property [core/account].
Verify: gcloud auth list

Related[edit]

See also[edit]

Advertising: