gcloudã§åãæ±ãããã¸ã§ã¯ãã®åãæ¿ãæ¹æ³ãããã¸ã§ã¯ãä½ããã³ã«èª¿ã¹ã¦ãæ°ãããã®ã§ã
gcloud ã®æ©è½ã§åãæ¿ããæ¹æ³
gcloudã«ãæ§æ管çæ©è½ãåãã£ã¦ããã®ã§ããã§åãæ¿ããå ´åã
æ§æã®ä½æ
ããã«åãæ¿ãã£ã¦ãã¾ãã®ã§ãdefault ã«æ»ãã
$ gcloud config configurations create [configuration] $ gcloud config configurations activate default
æ§æã®åãæ¿ã
gcloud å
¨ä½ã§ä½¿ãæ§æãåãæ¿ããå ´åã¯ãconfig configurations activate
$ gcloud config configurations activate [configuration]
ç°å¢å¤æ°ã§ä¸æçã«åãæ¿ããå ´å㯠CLOUDSDK_ACTIVE_CONFIG_NAME
ãã»ããããã(ãã£ã¬ã¯ããªãã¨ã«åãæ±ã£ã¦ããããã¸ã§ã¯ããç°ãªãå ´åãªã©ã¯direnvãªã©ã使ãã¨è¯ã)
$ export CLOUDSDK_ACTIVE_CONFIG_NAME=[configuration]
gcloud ã®è¨å®å ¨ä½ãåãæ¿ããæ¹æ³
CLOUDSDK_CONFIG
ç°å¢å¤æ°ã§ãè¨å®ãã¡ã¤ã«ã®ãã£ã¬ã¯ããªãã¨åãæ¿ãã¦ãã¾ããã
export CLOUDSDK_CONFIG=$HOME/.config/gcloud_work
ç¾å¨ã®è¨å®ã®ç¢ºèª
gcloud config configurations list
ã§ãIS_ACTIVE ã«ãªã£ã¦ãããã®ãç¾å¨ã®è¨å®ã