ひよこメモ

備忘ブログ Ruby, Rails, AWS, html5, css3, javascript, vim,

GCPコマンド一覧

ログイン
gcloud init
gcloud auth login

接続
gcloud compute --project "プロジェクト名" ssh --zone "ゾーン名" "ユーザー名"

確認
インスタンスの確認
gcloud compute instances list
アカウントの確認
gcloud auth list
設定の確認
gcloud config list
configurationファイルの場所 ~/.config/gcloud/configurations/
configurationファイルの切り替え
gcloud config configurations activate config名


SDKの更新
gcloud components update