Google Cloud CLI (gcloud) · Setup and configuration
Set the default project
Make a project the default for later commands.
gcloud config set project my-project-id
Official Google Cloud CLI (gcloud) documentation
More setup and configuration commands
- Check the CLI version
- Initialize gcloud
- Sign in
- Set up application default credentials
- Show current settings
- List projects
All setup and configuration commands · Google Cloud CLI (gcloud) cheatsheet