diff options
| author | Thomas Kosiewski <[email protected]> | 2025-06-25 17:48:15 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-25 15:48:15 +0000 |
| commit | af4dfd9327950d99cc2740b3cdd91e3186258a7a (patch) | |
| tree | c9a75ded4efd4a042cb3a621bc778562f631f981 /docs/cli/authentication.md | |
| parent | 21cfe9f6801f286dda6d51d2886e27bd67bd5fa4 (diff) | |
Update authentication.md (#1429)
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'docs/cli/authentication.md')
| -rw-r--r-- | docs/cli/authentication.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cli/authentication.md b/docs/cli/authentication.md index 67ab74d7..e4d83db7 100644 --- a/docs/cli/authentication.md +++ b/docs/cli/authentication.md @@ -27,11 +27,11 @@ The Gemini CLI requires you to authenticate with Google's AI services. On initia - Use this option to log in with the **Google Workspace Accounts**. This is a paid service for businesses and organizations that provides a suite of productivity tools, including a custom email domain (e.g. [email protected]), enhanced security features, and administrative controls. These accounts are often managed by an employer or school. - Google Workspace Account must first configure a Google Cloud Project Id to use, [enable the Gemini for Cloud API](https://cloud.google.com/gemini/docs/discover/set-up-gemini#enable-api) and [configure access permissions](https://cloud.google.com/gemini/docs/discover/set-up-gemini#grant-iam). You can temporarily set the environment variable in your current shell session using the following command: ```bash - export GOOGLE_CLOUD_PROJECT_ID="YOUR_PROJECT_ID" + export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID" ``` - For repeated use, you can add the environment variable to your `.env` file (located in the project directory or user home directory) or your shell's configuration file (like `~/.bashrc`, `~/.zshrc`, or `~/.profile`). For example, the following command adds the environment variable to a `~/.bashrc` file: ```bash - echo 'export GOOGLE_CLOUD_PROJECT_ID="YOUR_PROJECT_ID"' >> ~/.bashrc + echo 'export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"' >> ~/.bashrc source ~/.bashrc ``` - During startup, Gemini CLI will direct you to a webpage for authentication. Once authenticated, your credentials will be cached locally so the web login can be skipped on subsequent runs. |
