Set up Application Default CredentialsStay organized with collectionsSave and categorize content based on your preferences.
How you set up Application Default Credentials (ADC) for use by Cloud Client Libraries,
Google API Client Libraries, and the REST and RPC APIs depends on the environment
where your code is running.
You can provide credentials to ADC by using thegcloud auth application-default logincommand. This makes
credentials available to the Cloud Client Libraries and Google API Client Libraries.
The gcloud CLI itself doesn't use ADC to access Google Cloud
resources. To learn how to provide credentials to the gcloud CLI, seeAuthentication for the gcloud CLI.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-08 UTC."],[],[]]