- NAME
-
- gcloud alpha topic startup - supplementary help for gcloud startup options
- DESCRIPTION
-
(ALPHA)This page provides supplementary help for configuring the gcloud command-line tool's startup behavior, including Python interpreter selection and environment variables. - CONFIGURING THE PYTHON INTERPRETER
-
The
gcloudCLI requires a compatible Python version (3.10-3.14) to run. In most gcloud CLI installations, the gcloud installer manages the Python installation (version 3.13) for the user. Configuring the Python interpreter is only supported in specific scenarios described below. - When to Use
CLOUDSDK_PYTHONenvironment variable -
You can ONLY consider using the CLOUDSDK_PYTHON environment variable when you
are on:
-
Linux: Installing from a versioned archives (*.tar.gz*) on ARM or x86 architectures where Python is NOT included as part of the installation, gcloud will search for a compatible Python on your system PATH (looking for python3 then python). You can set theCLOUDSDK_PYTHONenvironment variable to the full path of your preferred compatible Python interpreter if the default one found on PATH is not desired. -
macOS: Available only for archived install and where the Python version matches the Python version managed by the gcloud CLI Tools install. Note that this is not available for Homebrew installations of gcloud CLI Tools. -
Windows: gcloud installer includes the required Python interpreter by default. Only useCLOUDSDK_PYTHONif you need to use a different Python installation.
Example Usages:
# Use the python3 interpreter on your path
export CLOUDSDK_PYTHON=python3# Use a python you have installed in a special location
export CLOUDSDK_PYTHON=/usr/local/my-custom-python-install/python -
- Other Components
-
gsutilversions 5.0 and later support Python 3.10-3.13. To use a different interpreter forgsutilthan for the other Python tools, set theCLOUDSDK_GSUTIL_PYTHONenvironment variable to the interpreter that you want.bqversions 2.0.99 and later support Python 3.10-3.14. To use a different interpreter forbqthan for the other Python tools, set theCLOUDSDK_BQ_PYTHONenvironment variable to the interpreter that you want. - SETTING CONFIGURATIONS AND PROPERTIES
-
Your active configuration can also be set via the environment variable
CLOUDSDK_ACTIVE_CONFIG_NAME. This allows you to specify a certain configuration in a given terminal session without changing the global default configuration.In addition to being able to set them via
gcloud config set, eachgcloudproperty has a corresponding environment variable. They take the form:CLOUDSDK_SECTION_PROPERTY. For example, if you wanted to change your active project for just one terminal you could run:export CLOUDSDK_CORE_PROJECT=my-projectFor more information, see
gcloud topic configurations. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud topic startupgcloud beta topic startup
gcloud alpha topic startup
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-17 UTC.