LoginSignup
5
6

More than 5 years have passed since last update.

Google Cloud Platform コンソールでログインしてみる。

Posted at

Google Cloud Platform (GCP) の初期設定(Console)(覚書)

Google Cloud Platform resources and developer workflow

GCP に auth login

$ gcloud auth login

account を切り替える

(To set the active account, run:)

  $ gcloud config set account ``ACCOUNT''

GCP の Project を指定する

(You can change this setting)

$ gcloud config set project PROJECT_ID

GCP の Project の設定を解除する

(unset it)

$ cloud config unset projet

GCP SDK Update

(Updates are available for some Cloud SDK components.)

$ gcloud components update

GCP SDK Revert

(To revert your SDK to the previously installed version)

$ gcloud components update --version [90.0.0]

Deploy コマンド

$ appcfg.py -A PROJECT_ID update app.yaml

パーミッションが無いなどデプロイができないとき

(キャッシュをクリアしてみる)

$ appcfg.py -A PROJECT_ID update app.yaml --no_cookies

その他コマンド

Usage: gcloud [optional flags] <group | command>
  group may be           auth | components | compute | config | container |
                         deployment-manager | dns | preview | source | sql |
                         topic
  command may be         docker | feedback | help | info | init | version

The *gcloud* CLI manages authentication, local configuration, developer
workflow, and interactions with the Google Cloud Platform APIs.

optional flags:
  --account ACCOUNT      Google Cloud Platform user account to use for
                         invocation.
  --format FORMAT        The format for printing command output resources.
  --help                 Display detailed help.
  --log-http             Log all HTTP server requests and responses to stderr.
  --project PROJECT_ID   Google Cloud Platform project ID to use for this
                         invocation.
  --quiet, -q            Disable all interactive prompts.
  --trace-token TRACE_TOKEN
                         Token used to route traces of service requests for
                         investigation of issues.
  --user-output-enabled  Print user intended output to the console.
  --verbosity VERBOSITY  Override the default verbosity for this command.  This
                         must be a standard logging verbosity level: [debug,
                         info, warning, error, critical, none] (Default:
                         [warning]).
  -h                     Print a summary help and exit.
  -v, --version          Print version information.

command groups:
  auth                   Manage oauth2 credentials for the Google Cloud SDK.
  components             List, install, update, or remove Google Cloud SDK
                         components.
  compute                Read and manipulate Google Compute Engine resources.
  config                 View and edit Google Cloud SDK properties.
  container              Deploy and manage clusters of machines for running
                         containers.
  deployment-manager     Manage deployments of cloud resources.
  dns                    Manage your Cloud DNS managed-zones and record-sets.
  preview                Manage Preview CLI command groups.
  source                 Cloud git repository commands.
  sql                    Manage Cloud SQL databases.
  topic                  gcloud supplementary help.

commands:
  docker                 Provides the docker CLI access to the Google Container
                         Registry.
  feedback               Provide feedback to the Google Cloud SDK team.
  help                   Prints detailed help messages for the specified
                         commands.
  info                   Display information about the current gcloud
                         environment.
  init                   Initialize or reinitialize gcloud.
  version                Print version information for Cloud SDK components.

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6