Google Cloud Platform

Table of Contents

Overview

gcloud auth application-default login

Reference

Terminology

Topics

OAuth 2.0

How-to

Authenticate access

API access in services

export GOOGLE_APPLICATION_CREDENTIALS="/path/to/keyfile.json"

API access in local

# By default, API enablement and quotas are managed
# by the master Application Default Credentials project,
# which means that a small number of API calls may exceed quota.
gcloud auth application-default login

# When this happens, you need to create a client id and specify it as follows,
# which means now the API calls consume your project's quota.
gcloud auth application-default login --client-id-file=CLIENT_ID_FILE
~/.config/gcloud/application_default_credentials.json

CLI

gcloud auth login

Links